aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-21 13:17:10 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-21 13:17:10 +0000
commitc28783ee430b106b636bf636bddf0799126a19d5 (patch)
tree84752719e337f76093654c501ad5e44c80916ce6 /include
parent614da8c13f4711337828a3b017d86002c6ea1292 (diff)
downloadbullet-lab-remix-c28783ee430b106b636bf636bddf0799126a19d5.tar.xz
Experimental support for cross compiling with mingw-w64.
Fix blinking HangUpText. Exit 1 if not terminated correctly.
Diffstat (limited to 'include')
-rw-r--r--include/hge.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/hge.h b/include/hge.h
index 131cbbf..daed571 100644
--- a/include/hge.h
+++ b/include/hge.h
@@ -12,8 +12,9 @@
#include "unix_compat.h"
-#ifdef _WINDOWS
+#ifdef WIN32
#include <windows.h>
+#include <cstddef>
#endif
#define HGE_VERSION 0x181
@@ -47,12 +48,12 @@
#define sinf (float)sin
#define powf (float)pow
#define fabsf (float)fabs
-
- #define min(x,y) ((x) < (y)) ? (x) : (y)
- #define max(x,y) ((x) > (y)) ? (x) : (y)
+ #define min(x,y) ((x) < (y)? (x) : (y))
+ #define max(x,y) ((x) > (y)? (x) : (y))
#endif
+
/*
** Common data types
*/