aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-19 19:59:48 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-19 19:59:48 +1000
commit9f6aba38d6accfc350ffc812a2ea2600f1352891 (patch)
tree426f5d01a8bb37462e60234c2b42501e7c8e323c
parentb52fe0feb6e02ab7af982fd4722fef05ac5734a2 (diff)
Define WCHAR_MAX to INT_MAX, not 0x7fffffff if undefined, as per suggestion from Netocrat
darcs-hash:20060519095948-ac50b-19842d18f4a020da7895d21df2f289dcf42f30bf.gz
-rw-r--r--fallback.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fallback.h b/fallback.h
index 10a07121..ff67f68f 100644
--- a/fallback.h
+++ b/fallback.h
@@ -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
/**