]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/thread.cpp
fixing notifications
[wxWidgets.git] / src / mac / carbon / thread.cpp
index 2a2f9a74400c966e0378716e7582cfec80fcb44e..b8302e571fa98fdf8f52a6d41f065f95ef2bf105 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/wx.h"
+    #include "wx/module.h"
 #endif
 
 #if wxUSE_THREADS
 
-#include "wx/module.h"
 #include "wx/thread.h"
 
 #ifdef __WXMAC__
@@ -1039,7 +1039,7 @@ OSStatus wxThreadInternal::MacThreadStart(void *parameter)
     wxThreadInternal *pthread = thread->m_internal;
 
     // add to TLS so that This() will work
-    verify_noerr( MPSetTaskStorageValue( gs_tlsForWXThread , (long) thread ) ) ;
+    verify_noerr( MPSetTaskStorageValue( gs_tlsForWXThread , (TaskStorageValue) thread ) ) ;
 
     // have to declare this before pthread_cleanup_push() which defines a
     // block!