View | Details | Raw Unified | Return to bug 274039
Collapse All | Expand All

(-)b/devel/gcc-arm-embedded/files/patch-src_gcc_gcc_system.h (+42 lines)
Added Link Here
1
--- src/gcc/gcc/system.h.orig	2021-06-01 00:15:23 UTC
2
+++ src/gcc/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
@@ -235,6 +222,19 @@ extern int errno;
24
 # include <cstring>
25
 # include <new>
26
 # include <utility>
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 274039