From 9909a3f01587a9c8ab04794e1068392662fb12c6 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 10 May 2021 20:17:40 +0200 Subject: [PATCH] Ports: Remove obsolete patch for flatbuffers The patch is not neccessary anymore, in fact it breaks the build now because we have those functions in the std namespace. --- .../patches/flatbuffers-1.12.0.patch | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 Ports/flatbuffers/patches/flatbuffers-1.12.0.patch diff --git a/Ports/flatbuffers/patches/flatbuffers-1.12.0.patch b/Ports/flatbuffers/patches/flatbuffers-1.12.0.patch deleted file mode 100644 index 0169fd1975..0000000000 --- a/Ports/flatbuffers/patches/flatbuffers-1.12.0.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -ruN flatbuffers-1.12.0/src/code_generators.cpp flatbuffers-1.12.0-serenity/src/code_generators.cpp ---- flatbuffers-1.12.0/src/code_generators.cpp 2020-03-12 19:33:39.000000000 -0300 -+++ flatbuffers-1.12.0-serenity/src/code_generators.cpp 2021-03-31 20:39:12.000000000 -0300 -@@ -23,6 +23,17 @@ - #include "flatbuffers/base.h" - #include "flatbuffers/util.h" - -+#if defined(__serenity__) -+ // We do not have those functions inside std namespace... -+ -+namespace std { -+ auto isnan(double x) { return ::isnan(x); } -+ auto isinf(double x) { return ::isinf(x); } -+} -+ -+#endif -+ -+ - #if defined(_MSC_VER) - # pragma warning(push) - # pragma warning(disable : 4127) // C4127: conditional expression is constant