X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c096f614b94fc6462f6339e4aec6d0b673897e13..5dc43d1fc5bdac58ac689364b74118ea67285305:/include/wx/thread.h diff --git a/include/wx/thread.h b/include/wx/thread.h index 7d61023195..c9fe01b71f 100644 --- a/include/wx/thread.h +++ b/include/wx/thread.h @@ -209,7 +209,7 @@ private: // in order to avoid any overhead under platforms where critical sections are // just mutexes make all wxCriticalSection class functions inline -#if !defined(__WXMSW__) +#if !defined(__WXMSW__) && !defined(__WXMAC__) #define wxCRITSECT_IS_MUTEX 1 #define wxCRITSECT_INLINE inline @@ -261,6 +261,8 @@ private: wxCritSectBuffer m_buffer; }; +#elif defined(__WXMAC__) + void *m_critRegion ; #endif // Unix&OS2/Win32 DECLARE_NO_COPY_CLASS(wxCriticalSection)