]> git.saurik.com Git - wxWidgets.git/commitdiff
CFM Build fixes
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 23 Apr 2004 09:14:50 +0000 (09:14 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 23 Apr 2004 09:14:50 +0000 (09:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/menu.cpp
src/mac/carbon/mpthread.cpp

index a98f3c3b87452bfefdf7ddcf77720c8c8bf5f101..b58d8e5d83827ce34060a779d79008da4728ad18 100644 (file)
@@ -504,7 +504,7 @@ void wxMenuBar::MacInstallMenuBar()
 
     wxStAppResource resload ;
 
-    MenuBarHandle menubar = NewHandleClear( sizeof( MenuBarHeader ) ) ;
+    MenuBarHandle menubar = NewHandleClear( 6 /* sizeof( MenuBarHeader ) */ ) ;
     ::SetMenuBar( menubar ) ;
     DisposeMenuBar( menubar ) ;
     MenuHandle appleMenu = NULL ;
index 52976e92a53341f96497f20f8a1f53e8d8d6355a..b0d67a020c4bfd1c95d7720c605f7abadd7f7901 100755 (executable)
 #include "wx/thread.h"
 
 #ifdef __WXMAC__
+#if TARGET_API_MAC_OSX
 #include <CoreServices/CoreServices.h>
+#else
+#include <DriverServices.h>
+#include <Multiprocessing.h>
+#include <math.h>
+#endif
 #include "wx/mac/uma.h"
 #endif
 
-// trace mask for wxThread operations
-#define TRACE_THREADS   _T("thread")
-
-// you can get additional debugging messages for the semaphore operations
-#define TRACE_SEMA      _T("semaphore")
-
-
 // ----------------------------------------------------------------------------
 // constants
 // ----------------------------------------------------------------------------
@@ -1149,16 +1148,9 @@ wxThreadError wxThread::Resume()
     switch ( state )
     {
         case STATE_PAUSED:
-            wxLogTrace(TRACE_THREADS, _T("Thread %ld suspended, resuming."),
-                       GetId());
-
             m_internal->Resume();
-
             return wxTHREAD_NO_ERROR;
-
         case STATE_EXITED:
-            wxLogTrace(TRACE_THREADS, _T("Thread %ld exited, won't resume."),
-                       GetId());
             return wxTHREAD_NO_ERROR;
 
         default:
@@ -1428,7 +1420,7 @@ bool wxThreadModule::OnInit()
     
        if ( !hasThreadManager )
     {
-               wxMessageBox( "Error" , "MP Thread Support is not available on this System" , wxOK ) ;
+               wxMessageBox( wxT("Error") , wxT("MP Thread Support is not available on this System" ), wxOK ) ;
                return FALSE ;
     }