tweaked conditional compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,9 +35,7 @@
|
|||||||
#include "wx/thread.h"
|
#include "wx/thread.h"
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#ifndef __DARWIN__
|
|
||||||
#include <Threads.h>
|
#include <Threads.h>
|
||||||
#endif
|
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -94,7 +94,6 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
sUMAHasWindowManager = sUMAWindowManagerAttr & gestaltWindowMgrPresent ;
|
sUMAHasWindowManager = sUMAWindowManagerAttr & gestaltWindowMgrPresent ;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __DARWIN__
|
|
||||||
#if TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
// Call currently implicitely done : InitFloatingWindows() ;
|
// Call currently implicitely done : InitFloatingWindows() ;
|
||||||
#else
|
#else
|
||||||
@@ -102,7 +101,6 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
InitFloatingWindows() ;
|
InitFloatingWindows() ;
|
||||||
else
|
else
|
||||||
InitWindows();
|
InitWindows();
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( NavServicesAvailable() )
|
if ( NavServicesAvailable() )
|
||||||
@@ -588,8 +586,10 @@ OSStatus UMADrawThemePlacard( const Rect *inRect , ThemeDrawState inState )
|
|||||||
return ::DrawThemePlacard( inRect , inState ) ;
|
return ::DrawThemePlacard( inRect , inState ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !TARGET_CARBON
|
||||||
static OSStatus helpMenuStatus = noErr ;
|
static OSStatus helpMenuStatus = noErr ;
|
||||||
static MenuItemIndex firstCustomItemIndex = 0 ;
|
static MenuItemIndex firstCustomItemIndex = 0 ;
|
||||||
|
#endif
|
||||||
|
|
||||||
OSStatus UMAGetHelpMenu(
|
OSStatus UMAGetHelpMenu(
|
||||||
MenuRef * outHelpMenu,
|
MenuRef * outHelpMenu,
|
||||||
|
@@ -35,9 +35,7 @@
|
|||||||
#include "wx/thread.h"
|
#include "wx/thread.h"
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#ifndef __DARWIN__
|
|
||||||
#include <Threads.h>
|
#include <Threads.h>
|
||||||
#endif
|
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -94,7 +94,6 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
sUMAHasWindowManager = sUMAWindowManagerAttr & gestaltWindowMgrPresent ;
|
sUMAHasWindowManager = sUMAWindowManagerAttr & gestaltWindowMgrPresent ;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __DARWIN__
|
|
||||||
#if TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
// Call currently implicitely done : InitFloatingWindows() ;
|
// Call currently implicitely done : InitFloatingWindows() ;
|
||||||
#else
|
#else
|
||||||
@@ -102,7 +101,6 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
InitFloatingWindows() ;
|
InitFloatingWindows() ;
|
||||||
else
|
else
|
||||||
InitWindows();
|
InitWindows();
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( NavServicesAvailable() )
|
if ( NavServicesAvailable() )
|
||||||
@@ -588,8 +586,10 @@ OSStatus UMADrawThemePlacard( const Rect *inRect , ThemeDrawState inState )
|
|||||||
return ::DrawThemePlacard( inRect , inState ) ;
|
return ::DrawThemePlacard( inRect , inState ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !TARGET_CARBON
|
||||||
static OSStatus helpMenuStatus = noErr ;
|
static OSStatus helpMenuStatus = noErr ;
|
||||||
static MenuItemIndex firstCustomItemIndex = 0 ;
|
static MenuItemIndex firstCustomItemIndex = 0 ;
|
||||||
|
#endif
|
||||||
|
|
||||||
OSStatus UMAGetHelpMenu(
|
OSStatus UMAGetHelpMenu(
|
||||||
MenuRef * outHelpMenu,
|
MenuRef * outHelpMenu,
|
||||||
|
Reference in New Issue
Block a user