]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow compilation with MW CRT on OS X. Unlike BSD CRT, MW CRT does not
authorDavid Elliott <dfe@tgwbd.org>
Sun, 27 Mar 2005 08:27:15 +0000 (08:27 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 27 Mar 2005 08:27:15 +0000 (08:27 +0000)
define SIGTRAP so we have to use the Mac OS Debugger() function.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appbase.cpp

index 45ce4a4c72166513e65e41caf48725f8a50dc8c2..ef32e59f1d8000dc3d1351a7b021412280a12de3 100644 (file)
     #include "wx/fontmap.h"
 #endif // wxUSE_FONTMAP
 
+#if defined(__DARWIN__) && defined(_MSL_USING_MW_C_HEADERS) && _MSL_USING_MW_C_HEADERS
+    // For MacTypes.h for Debugger function
+    #include <CoreFoundation/CFBase.h>
+#endif
+
 #if defined(__WXMAC__)
     // VZ: MacTypes.h is enough under Mac OS X (where I could test it) but
     //     I don't know which headers are needed under earlier systems so
@@ -582,6 +587,8 @@ void wxTrap()
     #else
         SysBreak();
     #endif
+#elif defined(_MSL_USING_MW_C_HEADERS) && _MSL_USING_MW_C_HEADERS
+    Debugger();
 #elif defined(__UNIX__)
     raise(SIGTRAP);
 #else