From ff78c00de1acbd482b522c567be7e5237d6068d9 Mon Sep 17 00:00:00 2001 From: Chongyun Lee <45286352+licy183@users.noreply.github.com> Date: Sun, 26 May 2024 19:57:15 +0800 Subject: [PATCH] Fix cxx error --- patches/0004-workaround-for-libcxx.patch | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/patches/0004-workaround-for-libcxx.patch b/patches/0004-workaround-for-libcxx.patch index 439de63..8313af5 100644 --- a/patches/0004-workaround-for-libcxx.patch +++ b/patches/0004-workaround-for-libcxx.patch @@ -1,29 +1,24 @@ --- a/gcc/ginclude/float.h +++ b/gcc/ginclude/float.h -@@ -25,6 +25,12 @@ - * ISO C Standard: 5.2.4.2.2 Characteristics of floating types - */ +@@ -629,3 +631,9 @@ + #endif + #endif /* _FLOAT_H___ */ ++ +#ifdef _LIBCPP_CFLOAT +#if __has_include_next() +# include_next +#endif +#endif -+ - #ifndef _FLOAT_H___ - #define _FLOAT_H___ - --- a/gcc/ginclude/stddef.h +++ b/gcc/ginclude/stddef.h -@@ -24,6 +24,11 @@ - /* - * ISO C Standard: 7.17 Common definitions - */ +@@ -461,3 +461,9 @@ + + #endif /* !_STDDEF_H && !_STDDEF_H_ && !_ANSI_STDDEF_H && !__STDDEF_H__ + || __need_XXX was not defined before */ ++ +#ifdef _LIBCPP_CSTDDEF +#if __has_include_next() +# include_next +#endif +#endif - #if (!defined(_STDDEF_H) && !defined(_STDDEF_H_) && !defined(_ANSI_STDDEF_H) \ - && !defined(__STDDEF_H__)) \ - || defined(__need_wchar_t) || defined(__need_size_t) \