Allow compilation with MW CRT on OS X. Unlike BSD CRT, MW CRT does not

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
This commit is contained in:
David Elliott 2005-03-27 08:27:15 +00:00
parent d95fb7ebf8
commit f0756afed9

View File

@ -51,6 +51,11 @@
#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