-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The reason for removing math.h is that undefining __GLIBC__ does not take effect. By default, sim will use the toolchain's math library and undef __GLIBC__ in the source file. Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
- Loading branch information
1 parent
7e5ce63
commit 05a8789
Showing
5 changed files
with
21 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git libcxx/src/locale.cpp libcxx/src/locale.cpp | ||
--- libcxx/src/locale.cpp | ||
+++ libcxx/src/locale.cpp | ||
@@ -41,6 +41,10 @@ | ||
#include "include/atomic_support.h" | ||
#include "include/sso_allocator.h" | ||
|
||
+#if defined(__NuttX__) && defined(__GLIBC__) | ||
+# undef __GLIBC__ | ||
+#endif | ||
+ | ||
// On Linux, wint_t and wchar_t have different signed-ness, and this causes | ||
// lots of noise in the build log, but no bugs that I know of. | ||
_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wsign-conversion") | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters