]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - wcsmbs/wchar.h
* time/Makefile (tzcompile): Add missing backslash.
[thirdparty/glibc.git] / wcsmbs / wchar.h
index b54170c3f35d37fcd2569f5d8a7f2ede31c751d2..cc821b8a5038c19d8c3177b70551da31532692eb 100644 (file)
@@ -34,6 +34,19 @@ __BEGIN_DECLS
 #define __need_NULL
 #include <stddef.h>
 
+
+/* We try to get wint_t from <stddef.h>, but not all GCC versions define it
+   there.  So define it ourselves if it remains undefined.  */
+#ifndef _WINT_T
+/* Integral type unchanged by default argument promotions that can
+   hold any value corresponding to members of the extended character
+   set, as well as at least one value that does not correspond to any
+   member of the extended character set.  */
+#define _WINT_T
+typedef unsigned int wint_t;
+#endif
+
+
 /* Conversion state information.  */
 typedef int mbstate_t; /* FIXME */
 
@@ -44,15 +57,6 @@ typedef int mbstate_t; /* FIXME */
 # define WEOF (0xffffffffu)
 #endif
 
-#ifndef _WINT_T
-/* Integral type unchanged by default argument promotions that can
-   hold any value corresponding to members of the extended character
-   set, as well as at least one value that does not correspond to any
-   member of the extended character set.  */
-#define _WINT_T        1
-typedef unsigned int wint_t;
-#endif
-
 
 /* Copy SRC to DEST.  */
 extern wchar_t *wcscpy __P ((wchar_t *__dest, __const wchar_t *__src));