From 3581ff989dc7d93c93b7c25036b0b6a3eb77846a Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 22 Jun 2022 05:50:00 +0300 Subject: [PATCH] can't use C11 _Generic macros with C++ --- Quake/common.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Quake/common.h b/Quake/common.h index 6c0dd922..bb414045 100644 --- a/Quake/common.h +++ b/Quake/common.h @@ -42,8 +42,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #undef min #undef max -#if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \ - (defined(__cplusplus) && (__cplusplus >= 201103L)) +#if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) #define GENERIC_TYPES(x, separator) \ x(int, i) separator \ x(unsigned int, u) separator \