From 0ad63a18c8d59dc27c0729175d6d0fea3cdd4d18 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Mon, 15 Jun 2020 00:20:44 +0000 Subject: [PATCH] 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 --- qtypes.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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) -- 2.39.2