X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e2f1b3efb2a570d224af9fd9ed5db40b04457bb..a1900c9e1d07ac71f373f94656bf26a45f032c39:/src/msw/thread.cpp diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 52b3291077..7c66077a99 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -10,7 +10,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "thread.h" #endif @@ -826,7 +826,7 @@ wxThreadInternal::WaitForTerminate(bool shouldCancel, // in a secondary thread because if it had created some // window somehow (possible not even using wxWindows) // the system might dead lock then - if ( IsMain() ) + if ( wxThread::IsMain() ) { // it looks that sometimes WAIT_OBJECT_0 + 1 is // returned but there are no messages in the thread