Skip to content

Commit a4de4e1

Browse files
committed
Fix compile error
1 parent 4679502 commit a4de4e1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--- a/gcc/ginclude/float.h
2+
+++ 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+
*/
6+
7+
+#ifdef _LIBCPP_CFLOAT
8+
+#if __has_include_next(<float.h>)
9+
+# include_next <float.h>
10+
+#endif
11+
+#endif
12+
+
13+
#ifndef _FLOAT_H___
14+
#define _FLOAT_H___
15+
16+
--- a/gcc/ginclude/stddef.h
17+
+++ b/gcc/ginclude/stddef.h
18+
@@ -24,6 +24,11 @@
19+
/*
20+
* ISO C Standard: 7.17 Common definitions <stddef.h>
21+
*/
22+
+#ifdef _LIBCPP_CSTDDEF
23+
+#if __has_include_next(<stddef.h>)
24+
+# include_next <stddef.h>
25+
+#endif
26+
+#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)