diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-11 18:55:59 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-12 08:37:07 +0100 |
commit | 83c78971e25cd94cd071c0d8ded0ef42b8edacea (patch) | |
tree | 9ece23adbec29c6a332ea11ca5d69fc28c9d6d79 /Ports/libicu/patches | |
parent | 8419ddb4d82de3d8af010c9530f1f9abcd7ace47 (diff) | |
download | serenity-83c78971e25cd94cd071c0d8ded0ef42b8edacea.zip |
Ports: Fix building the libicu port
If you're on the new toolchain with std support already
you'd be unable to build libicu because <cmath> #undefs
some of the defines from <math.h> (e.g. isfinite).
Diffstat (limited to 'Ports/libicu/patches')
-rw-r--r-- | Ports/libicu/patches/std.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Ports/libicu/patches/std.patch b/Ports/libicu/patches/std.patch new file mode 100644 index 0000000000..81fc15f6a9 --- /dev/null +++ b/Ports/libicu/patches/std.patch @@ -0,0 +1,48 @@ +diff -Naur source/i18n/decimfmt.cpp source.serenity/i18n/decimfmt.cpp +--- source/i18n/decimfmt.cpp 2021-05-11 18:48:28.172956656 +0200 ++++ source.serenity/i18n/decimfmt.cpp 2021-05-11 18:47:42.222070235 +0200 +@@ -9,7 +9,7 @@ + // Helpful in toString methods and elsewhere. + #define UNISTR_FROM_STRING_EXPLICIT + +-#include <cmath> ++#include <math.h> + #include <cstdlib> + #include <stdlib.h> + #include "unicode/errorcode.h" +diff -Naur source/i18n/number_decimalquantity.cpp source.serenity/i18n/number_decimalquantity.cpp +--- source/i18n/number_decimalquantity.cpp 2021-05-11 18:48:28.172956656 +0200 ++++ source.serenity/i18n/number_decimalquantity.cpp 2021-05-11 18:48:02.715798916 +0200 +@@ -6,7 +6,7 @@ + #if !UCONFIG_NO_FORMATTING + + #include <cstdlib> +-#include <cmath> ++#include <math.h> + #include <limits> + #include <stdlib.h> + +diff -Naur source/i18n/number_utils.cpp source.serenity/i18n/number_utils.cpp +--- source/i18n/number_utils.cpp 2021-05-11 18:48:28.172956656 +0200 ++++ source.serenity/i18n/number_utils.cpp 2021-05-11 18:47:22.298352531 +0200 +@@ -10,7 +10,7 @@ + #define UNISTR_FROM_STRING_EXPLICIT + + #include <stdlib.h> +-#include <cmath> ++#include <math.h> + #include "number_decnum.h" + #include "number_types.h" + #include "number_utils.h" +diff -Naur source/i18n/reldatefmt.cpp source.serenity/i18n/reldatefmt.cpp +--- source/i18n/reldatefmt.cpp 2021-05-11 18:48:28.172956656 +0200 ++++ source.serenity/i18n/reldatefmt.cpp 2021-05-11 18:46:45.380973593 +0200 +@@ -14,7 +14,7 @@ + + #if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION + +-#include <cmath> ++#include <math.h> + #include <functional> + #include "unicode/dtfmtsym.h" + #include "unicode/ucasemap.h" |