]> git.saurik.com Git - wxWidgets.git/commitdiff
__WXDEBUG__ must be tested with #ifdef, not #if
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Aug 2005 21:03:41 +0000 (21:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Aug 2005 21:03:41 +0000 (21:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/app.cpp

index 7f666b955ee5982a9dc6cead64635e8b51cb7e0b..da0b261d9f09f9267eebc25a7f5de9cde20c2e8a 100644 (file)
@@ -565,7 +565,7 @@ DEFINE_ONE_SHOT_HANDLER_GETTER( wxMacAppEventHandler )
 WXIMPORT char std::__throws_bad_alloc ;
 #endif
 
-#if __WXDEBUG__
+#ifdef __WXDEBUG__
 
 pascal static void wxMacAssertOutputHandler(OSType componentSignature, UInt32 options,
     const char *assertionString, const char *exceptionLabelString,
@@ -619,7 +619,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
 {
     // Mac-specific
 
-#if __WXDEBUG__
+#ifdef __WXDEBUG__
     InstallDebugAssertOutputHandler ( NewDebugAssertOutputHandlerUPP( wxMacAssertOutputHandler ) );
 #endif
     UMAInitToolbox( 4, sm_isEmbedded ) ;