can't use C11 _Generic macros with C++

This commit is contained in:
Ozkan Sezer 2022-06-22 05:50:00 +03:00
parent d24b969990
commit 3581ff989d

View file

@ -42,8 +42,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#undef min #undef min
#undef max #undef max
#if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \ #if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L))
(defined(__cplusplus) && (__cplusplus >= 201103L))
#define GENERIC_TYPES(x, separator) \ #define GENERIC_TYPES(x, separator) \
x(int, i) separator \ x(int, i) separator \
x(unsigned int, u) separator \ x(unsigned int, u) separator \