1 // This checks that, by default, wchar_t is 32-bit and 2 // WCHAR_MIN/WCHAR_MAX are 32-bit signed on all platforms when 3 // _WCHAR_IS_ALWAYS_SIGNED is defined. 4 #define _WCHAR_IS_ALWAYS_SIGNED 1 5 #include <wchar.h> 6 7 #define CONCAT(x,y) CONCAT_(x,y) 8 #define CONCAT_(x,y) x ## y 9 10 #define STATIC_ASSERT(condition) \ 11 static char CONCAT(dummy_,__LINE__)[1 - 2*(!(condition))]; 12 13 STATIC_ASSERT(sizeof(wchar_t) == 4); 14 15 STATIC_ASSERT(WCHAR_MIN == -1-2147483647); 16 STATIC_ASSERT(WCHAR_MAX == 2147483647); 17