X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/122cf17b1304d0af9dfe67d605ee4e5c92dd2dfc..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/unix/threadpsx.cpp diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index db3063e48e..2775f9576e 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -720,7 +720,7 @@ public: wxThreadState GetState() const { return m_state; } void SetState(wxThreadState state) { -#ifdef __WXDEBUG__ +#if wxUSE_LOG_TRACE static const wxChar *stateNames[] = { _T("NEW"), @@ -731,7 +731,7 @@ public: wxLogTrace(TRACE_THREADS, _T("Thread %p: %s => %s."), GetId(), stateNames[m_state], stateNames[state]); -#endif // __WXDEBUG__ +#endif // wxUSE_LOG_TRACE m_state = state; } @@ -1624,7 +1624,6 @@ bool wxThread::TestDestroy() wxThread::~wxThread() { -#ifdef __WXDEBUG__ m_critsect.Enter(); // check that the thread either exited or couldn't be created @@ -1636,7 +1635,6 @@ wxThread::~wxThread() } m_critsect.Leave(); -#endif // __WXDEBUG__ delete m_internal;