Define WCHAR_MAX to INT_MAX, not 0x7fffffff if undefined, as per suggestion from Netocrat

darcs-hash:20060519095948-ac50b-19842d18f4a020da7895d21df2f289dcf42f30bf.gz
This commit is contained in:
axel 2006-05-19 19:59:48 +10:00
parent b52fe0feb6
commit 9f6aba38d6

View file

@ -7,13 +7,13 @@
#include <stdarg.h>
#include <wctype.h>
#include <wchar.h>
#include <limits.h>
#ifndef WCHAR_MAX
/**
This _should_ be defined by wchar.h, but e.g. OpenBSD doesn't.
*/
#define WCHAR_MAX 0x7fffffffu
#define WCHAR_MAX INT_MAX
#endif
/**