Fix Windows cross-builds.
That also hasn't SIGTRAP, so use WZ_OS_WIN instead of _MSC_VER to decide if we use raise(SIGTRAP) or assert(). git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11070 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
36891ca806
commit
a48d3d2198
|
@ -31,8 +31,10 @@
|
|||
# error Framework header files MUST be included from Frame.h ONLY.
|
||||
#endif
|
||||
|
||||
#include "wzglobal.h"
|
||||
|
||||
#include <assert.h>
|
||||
#if !defined(_MSC_VER)
|
||||
#if !defined(WZ_OS_WIN)
|
||||
#include <signal.h>
|
||||
#endif
|
||||
#include "macros.h"
|
||||
|
@ -59,7 +61,7 @@ extern bool assertEnabled;
|
|||
|
||||
|
||||
/* Do the correct assert call for each compiler */
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(WZ_OS_WIN)
|
||||
#define wz_assert(expr) assert(expr)
|
||||
#else
|
||||
#define wz_assert(expr) raise(SIGTRAP)
|
||||
|
|
Loading…
Reference in New Issue