aboutsummaryrefslogtreecommitdiffstats
path: root/community/flatbuffers/0001-Add-detection-of-strtoull_l-function.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2019-11-22 16:01:05 +0200
committerTimo Teräs <timo.teras@iki.fi>2019-11-22 16:14:04 +0200
commitcc60d59176ab62228f57df6cc21a66c8b9674980 (patch)
tree897c024191ff9184b8cdb5f0dc8677e0ac95de6b /community/flatbuffers/0001-Add-detection-of-strtoull_l-function.patch
parenteeb2777b45a53e6e3719f79ddc07cea5262f2771 (diff)
downloadaports-cc60d59176ab62228f57df6cc21a66c8b9674980.tar.bz2
aports-cc60d59176ab62228f57df6cc21a66c8b9674980.tar.xz
community/flatbuffers: upgrade to 1.11.0
Diffstat (limited to 'community/flatbuffers/0001-Add-detection-of-strtoull_l-function.patch')
-rw-r--r--community/flatbuffers/0001-Add-detection-of-strtoull_l-function.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/flatbuffers/0001-Add-detection-of-strtoull_l-function.patch b/community/flatbuffers/0001-Add-detection-of-strtoull_l-function.patch
new file mode 100644
index 0000000000..f3e82101bb
--- /dev/null
+++ b/community/flatbuffers/0001-Add-detection-of-strtoull_l-function.patch
@@ -0,0 +1,38 @@
+From bff7ffbc5130cd46caf33b76b4bb0593fcd15066 Mon Sep 17 00:00:00 2001
+From: Vladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com>
+Date: Fri, 10 May 2019 00:15:29 +0700
+Subject: [PATCH] Add detection of strtoull_l function (#5333) (#5337)
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/google/flatbuffers/commit/bff7ffbc5130cd46caf33b76b4bb0593fcd15066]
+---
+ CMakeLists.txt | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0640c37b5..30be238fe 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -42,12 +42,18 @@ if(DEFINED FLATBUFFERS_MAX_PARSING_DEPTH)
+ message(STATUS "FLATBUFFERS_MAX_PARSING_DEPTH: ${FLATBUFFERS_MAX_PARSING_DEPTH}")
+ endif()
+
+-# Auto-detect locale-narrow 'strtod_l' function.
++# Auto-detect locale-narrow 'strtod_l' and 'strtoull_l' functions.
+ if(NOT DEFINED FLATBUFFERS_LOCALE_INDEPENDENT)
++ set(FLATBUFFERS_LOCALE_INDEPENDENT 0)
+ if(MSVC)
+- check_cxx_symbol_exists(_strtof_l stdlib.h FLATBUFFERS_LOCALE_INDEPENDENT)
++ check_cxx_symbol_exists(_strtof_l stdlib.h FLATBUFFERS_HAS_STRTOF_L)
++ check_cxx_symbol_exists(_strtoui64_l stdlib.h FLATBUFFERS_HAS_STRTOULL_L)
+ else()
+- check_cxx_symbol_exists(strtof_l stdlib.h FLATBUFFERS_LOCALE_INDEPENDENT)
++ check_cxx_symbol_exists(strtof_l stdlib.h FLATBUFFERS_HAS_STRTOF_L)
++ check_cxx_symbol_exists(strtoull_l stdlib.h FLATBUFFERS_HAS_STRTOULL_L)
++ endif()
++ if(FLATBUFFERS_HAS_STRTOF_L AND FLATBUFFERS_HAS_STRTOULL_L)
++ set(FLATBUFFERS_LOCALE_INDEPENDENT 1)
+ endif()
+ endif()
+ add_definitions(-DFLATBUFFERS_LOCALE_INDEPENDENT=$<BOOL:${FLATBUFFERS_LOCALE_INDEPENDENT}>)