]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - qtypes.h
fix an int->enum conversion error with g++ on big endian systems
[xonotic/darkplaces.git] / qtypes.h
index 480b1e7fd6a4583e81e0065049b578dc10775cc8..22ac69a68d28718ed9f5525b1f0d78db2db3b02c 100644 (file)
--- a/qtypes.h
+++ b/qtypes.h
@@ -7,9 +7,13 @@ typedef unsigned char qbyte;
 #undef true
 #undef false
 
+#ifndef __cplusplus
 typedef enum {false, true} qboolean;
+#else
+typedef bool qboolean;
+#endif
 
-#ifdef WIN32
+#if defined(WIN32) && !defined(WIN64)
 # define ssize_t long
 #endif
 
@@ -18,8 +22,8 @@ typedef enum {false, true} qboolean;
 #endif
 
 #ifndef FALSE
-#define FALSE 0
-#define TRUE 1
+#define FALSE false
+#define TRUE true
 #endif
 
 // up / down