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-861f7616d084
master
Christian Ohm 2010-06-28 15:37:03 +00:00 committed by Git SVN Gateway
parent 36891ca806
commit a48d3d2198
1 changed files with 4 additions and 2 deletions

View File

@ -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)