View | Details | Raw Unified | Return to bug 274041 | Differences between
and this patch

Collapse All | Expand All

(-)b/lang/gcc11-devel/files/patch-gcc_system.h (+42 lines)
Added Link Here
1
--- gcc/system.h.orig	2023-09-14 22:32:14 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
@@ -242,6 +229,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

Return to bug 274041