[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] PATCH: Fix __WCHAR_MIN definition



I've committed the following.

ChangeLog.eglibc:
2007-10-23  Jim Blandy  <jimb@xxxxxxxxxxxxxxxx>

	* bits/wchar.h (__WCHAR_MIN): Add missing underscores to name.

Index: bits/wchar.h
===================================================================
--- bits/wchar.h	(revision 3922)
+++ bits/wchar.h	(working copy)
@@ -30,14 +30,14 @@
 /* GCC may also define __WCHAR_UNSIGNED__.
    Use L'\0' to give the expression the correct (unsigned) type.  */
 #ifdef __WCHAR_UNSIGNED__
-#define WCHAR_MIN       L'\0'
+#define __WCHAR_MIN       L'\0'
 
 /* Failing that, rely on the preprocessor's knowledge of the
    signedness of wchar_t.  */
 #elif L'\0' - 1 > 0
-#define WCHAR_MIN       L'\0'
+#define __WCHAR_MIN       L'\0'
 #else
-#define WCHAR_MIN       (-WCHAR_MAX - 1)
+#define __WCHAR_MIN       (-__WCHAR_MAX - 1)
 #endif
 
 #endif	/* bits/wchar.h */