Skip to content

Commit 4a0f6a3

Browse files
authored
Fix cxx error (#2)
1 parent 918fff1 commit 4a0f6a3

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
--- a/gcc/ginclude/float.h
22
+++ b/gcc/ginclude/float.h
3-
@@ -25,6 +25,12 @@
4-
* ISO C Standard: 5.2.4.2.2 Characteristics of floating types <float.h>
5-
*/
3+
@@ -629,3 +631,9 @@
4+
#endif
65

6+
#endif /* _FLOAT_H___ */
7+
+
78
+#ifdef _LIBCPP_CFLOAT
89
+#if __has_include_next(<float.h>)
910
+# include_next <float.h>
1011
+#endif
1112
+#endif
12-
+
13-
#ifndef _FLOAT_H___
14-
#define _FLOAT_H___
15-
1613
--- a/gcc/ginclude/stddef.h
1714
+++ b/gcc/ginclude/stddef.h
18-
@@ -24,6 +24,11 @@
19-
/*
20-
* ISO C Standard: 7.17 Common definitions <stddef.h>
21-
*/
15+
@@ -461,3 +461,9 @@
16+
17+
#endif /* !_STDDEF_H && !_STDDEF_H_ && !_ANSI_STDDEF_H && !__STDDEF_H__
18+
|| __need_XXX was not defined before */
19+
+
2220
+#ifdef _LIBCPP_CSTDDEF
2321
+#if __has_include_next(<stddef.h>)
2422
+# include_next <stddef.h>
2523
+#endif
2624
+#endif
27-
#if (!defined(_STDDEF_H) && !defined(_STDDEF_H_) && !defined(_ANSI_STDDEF_H) \
28-
&& !defined(__STDDEF_H__)) \
29-
|| defined(__need_wchar_t) || defined(__need_size_t) \

0 commit comments

Comments
 (0)