]> git.saurik.com Git - wxWidgets.git/commitdiff
tweaked conditional compilation
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Sat, 26 Jan 2002 22:05:56 +0000 (22:05 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Sat, 26 Jan 2002 22:05:56 +0000 (22:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/thread.cpp
src/mac/carbon/uma.cpp
src/mac/thread.cpp
src/mac/uma.cpp

index 69a6e85003c47e78e9195d7f54e42f3a3f433ccd..e59ca72ebeafcb49ebad5653f7408851acbf8c91 100644 (file)
@@ -35,9 +35,7 @@
 #include "wx/thread.h"
 
 #ifdef __WXMAC__
-#ifndef __DARWIN__
 #include <Threads.h>
-#endif
 #include "wx/mac/uma.h"
 #endif
 
index dbdb59341f67579a89479f8499342cb48602a16e..c9342a3947819817e6d340e8800f32428478b0ee 100644 (file)
@@ -94,7 +94,6 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
                sUMAHasWindowManager = sUMAWindowManagerAttr & gestaltWindowMgrPresent ;
        }
                
-#ifndef __DARWIN__
 #if TARGET_CARBON
 // Call currently implicitely done :           InitFloatingWindows() ;
 #else
@@ -102,7 +101,6 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
                InitFloatingWindows() ;
        else
                InitWindows();
-#endif
 #endif
 
        if ( NavServicesAvailable() )
@@ -588,8 +586,10 @@ OSStatus UMADrawThemePlacard( const Rect *inRect , ThemeDrawState inState )
   return ::DrawThemePlacard( inRect , inState ) ;
 }
 
+#if !TARGET_CARBON
 static OSStatus helpMenuStatus = noErr ;
 static MenuItemIndex firstCustomItemIndex = 0 ;
+#endif
 
 OSStatus UMAGetHelpMenu(
   MenuRef *        outHelpMenu,
index 69a6e85003c47e78e9195d7f54e42f3a3f433ccd..e59ca72ebeafcb49ebad5653f7408851acbf8c91 100644 (file)
@@ -35,9 +35,7 @@
 #include "wx/thread.h"
 
 #ifdef __WXMAC__
-#ifndef __DARWIN__
 #include <Threads.h>
-#endif
 #include "wx/mac/uma.h"
 #endif
 
index dbdb59341f67579a89479f8499342cb48602a16e..c9342a3947819817e6d340e8800f32428478b0ee 100644 (file)
@@ -94,7 +94,6 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
                sUMAHasWindowManager = sUMAWindowManagerAttr & gestaltWindowMgrPresent ;
        }
                
-#ifndef __DARWIN__
 #if TARGET_CARBON
 // Call currently implicitely done :           InitFloatingWindows() ;
 #else
@@ -102,7 +101,6 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
                InitFloatingWindows() ;
        else
                InitWindows();
-#endif
 #endif
 
        if ( NavServicesAvailable() )
@@ -588,8 +586,10 @@ OSStatus UMADrawThemePlacard( const Rect *inRect , ThemeDrawState inState )
   return ::DrawThemePlacard( inRect , inState ) ;
 }
 
+#if !TARGET_CARBON
 static OSStatus helpMenuStatus = noErr ;
 static MenuItemIndex firstCustomItemIndex = 0 ;
+#endif
 
 OSStatus UMAGetHelpMenu(
   MenuRef *        outHelpMenu,