From: cloudwalk Date: Mon, 15 Jun 2020 00:20:44 +0000 (+0000) Subject: Clean up qtypes.h a bit by including stdbool.h no matter what, removing checks X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0ad63a18c8d59dc27c0729175d6d0fea3cdd4d18;p=xonotic%2Fdarkplaces.git Clean up qtypes.h a bit by including stdbool.h no matter what, removing checks 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 --- diff --git a/qtypes.h b/qtypes.h index 65218999..f6ce845d 100644 --- a/qtypes.h +++ b/qtypes.h @@ -3,16 +3,9 @@ #define QTYPES_H #include - -#ifndef __cplusplus -#ifdef _MSC_VER -typedef enum {false, true} bool; -#else #include -#endif -#endif -typedef bool qboolean; +typedef bool qboolean; #ifndef NULL #define NULL ((void *)0)