Browse Source

Change stdint include order so __need_ defines are set

Jeremy Soller 2 years ago
parent
commit
dab147f862
2 changed files with 4 additions and 2 deletions
  1. 2 1
      include/bits/wchar.h
  2. 2 1
      include/bits/wctype.h

+ 2 - 1
include/bits/wchar.h

@@ -1,6 +1,5 @@
 #ifndef _BITS_WCHAR_H
 #define _BITS_WCHAR_H
-#include <stdint.h>
 
 #define WEOF (0xffffffffu)
 #define WCHAR_MIN (0)
@@ -11,4 +10,6 @@
 #define __need_wint_t
 #define __need_NULL
 
+#include <stdint.h>
+
 #endif /* _BITS_WCHAR_H */

+ 2 - 1
include/bits/wctype.h

@@ -1,7 +1,8 @@
 #ifndef _BITS_WCTYPE_H
 #define _BITS_WCTYPE_H
-#include <stdint.h>
 
 #define __need_wint_t
 
+#include <stdint.h>
+
 #endif /* _BITS_WCTYPE_H */