blob: 9e6a1c9573b03b411d7bf2394d14e80cbd9bb9ba [file] [log] [blame]
// This checks that, by default, wchar_t is 32-bit and
// WCHAR_MIN/WCHAR_MAX are 32-bit signed on all platforms when
// _WCHAR_IS_ALWAYS_SIGNED is defined.
#define _WCHAR_IS_ALWAYS_SIGNED 1
#include <wchar.h>
#define CONCAT(x,y) CONCAT_(x,y)
#define CONCAT_(x,y) x ## y
#define STATIC_ASSERT(condition) \
static char CONCAT(dummy_,__LINE__)[1 - 2*(!(condition))];
STATIC_ASSERT(sizeof(wchar_t) == 4);
STATIC_ASSERT(WCHAR_MIN == -1-2147483647);
STATIC_ASSERT(WCHAR_MAX == 2147483647);