From dfc7f310d6f72cf9b70fa30d1649bc4bff4d47b4 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Fri, 30 Mar 2018 21:35:06 +0200 Subject: [PATCH] Don't define wchar_t in C++ as it is a bultin-type there. --- library/include/stddef.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/include/stddef.h b/library/include/stddef.h index 817af4d..b78b0eb 100644 --- a/library/include/stddef.h +++ b/library/include/stddef.h @@ -61,7 +61,11 @@ extern "C" { typedef int ptrdiff_t; typedef unsigned int size_t; + +/* wchar_t is a built-in type in C++ */ +#ifndef __cplusplus typedef unsigned short wchar_t; +#endif /****************************************************************************/