[cfe-commits] r89355 - /cfe/trunk/lib/Headers/stdint.h

Ken Dyck ken.dyck at onsemi.com
Thu Nov 19 07:53:08 PST 2009


Author: kjdyck
Date: Thu Nov 19 09:53:08 2009
New Revision: 89355

URL: http://llvm.org/viewvc/llvm-project?rev=89355&view=rev
Log:
Define WCHAR_MIN and WCHAR_MAX in terms of __WCHAR_WIDTH__ for consistency with
other limit macros.


Modified:
    cfe/trunk/lib/Headers/stdint.h

Modified: cfe/trunk/lib/Headers/stdint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/stdint.h?rev=89355&r1=89354&r2=89355&view=diff

==============================================================================
--- cfe/trunk/lib/Headers/stdint.h (original)
+++ cfe/trunk/lib/Headers/stdint.h Thu Nov 19 09:53:08 2009
@@ -625,10 +625,10 @@
  * 0 .. Max.
  */
 #ifndef WCHAR_MAX
-#define WCHAR_MAX __WCHAR_MAX__
+#define WCHAR_MAX __stdint_exjoin3(INT, __WCHAR_WIDTH__, _MAX)
 #endif
 #ifndef WCHAR_MIN
-#define WCHAR_MIN (-__WCHAR_MAX__-1)
+#define WCHAR_MIN __stdint_exjoin3(INT, __WCHAR_WIDTH__, _MIN)
 #endif
 
 /* 7.18.4.2 Macros for greatest-width integer constants. */





More information about the cfe-commits mailing list