]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Clean up qtypes.h a bit by including stdbool.h no matter what, removing checks
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Jun 2020 00:20:44 +0000 (00:20 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 15 Jun 2020 00:20:44 +0000 (00:20 +0000)
Every major compiler includes it, including VS2013 and higher, so the
vast, vast majority of people shouldn't be affected by this. Every major
compiler's stdbool.h also checks for C++ anyway. These checks are
redundant.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12672 d7cf8633-e32d-0410-b094-e92efae38249

qtypes.h

index 6521899965ea6993427e3b0ec53424b9ee311044..f6ce845d633a82910e0d9aa8384d2e0f4ddbc855 100644 (file)
--- a/qtypes.h
+++ b/qtypes.h
@@ -3,16 +3,9 @@
 #define QTYPES_H
 
 #include <stdint.h>
-
-#ifndef __cplusplus
-#ifdef _MSC_VER
-typedef enum {false, true} bool;
-#else
 #include <stdbool.h>
-#endif
-#endif
-typedef bool qboolean;
 
+typedef bool qboolean;
 
 #ifndef NULL
 #define NULL ((void *)0)