Removed
Link Here
|
1 |
--- gcc/system.h.orig 2023-04-26 07:09:40 UTC |
2 |
+++ gcc/system.h |
3 |
@@ -203,19 +203,6 @@ extern int fprintf_unlocked (FILE *, const char *, ... |
4 |
#endif |
5 |
#endif |
6 |
|
7 |
-/* There are an extraordinary number of issues with <ctype.h>. |
8 |
- The last straw is that it varies with the locale. Use libiberty's |
9 |
- replacement instead. */ |
10 |
-#include "safe-ctype.h" |
11 |
- |
12 |
-#include <sys/types.h> |
13 |
- |
14 |
-#include <errno.h> |
15 |
- |
16 |
-#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO |
17 |
-extern int errno; |
18 |
-#endif |
19 |
- |
20 |
#ifdef __cplusplus |
21 |
#if defined (INCLUDE_ALGORITHM) || !defined (HAVE_SWAP_IN_UTILITY) |
22 |
# include <algorithm> |
23 |
@@ -243,6 +230,19 @@ extern int errno; |
24 |
# include <new> |
25 |
# include <utility> |
26 |
# include <type_traits> |
27 |
+#endif |
28 |
+ |
29 |
+/* There are an extraordinary number of issues with <ctype.h>. |
30 |
+ The last straw is that it varies with the locale. Use libiberty's |
31 |
+ replacement instead. */ |
32 |
+#include "safe-ctype.h" |
33 |
+ |
34 |
+#include <sys/types.h> |
35 |
+ |
36 |
+#include <errno.h> |
37 |
+ |
38 |
+#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO |
39 |
+extern int errno; |
40 |
#endif |
41 |
|
42 |
/* Some of glibc's string inlines cause warnings. Plus we'd rather |