2009-07-31  Kai Tietz  <kai.tietz@onevision.com>

        PR/2829952
        * wchar.h: Fix unsigned integer min/max constants.
        * stdint.h: Likewise.
        * limits.h: Likewise.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1106 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/wchar.h b/mingw-w64-headers/include/wchar.h
index e3233d7..b45282a 100644
--- a/mingw-w64-headers/include/wchar.h
+++ b/mingw-w64-headers/include/wchar.h
@@ -15,8 +15,8 @@
 #endif
 
 #ifndef WCHAR_MIN  /* also in stdint.h */
-#define WCHAR_MIN 0
-#define WCHAR_MAX ((wchar_t) -1) /* UINT16_MAX */
+#define WCHAR_MIN 0U
+#define WCHAR_MAX 0xffffU
 #endif
 
 #ifndef __GNUC_VA_LIST