summaryrefslogtreecommitdiff
path: root/external/libetonyek
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-10-25 19:34:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-10-25 19:51:27 +0200
commit3c4011ea3552ee55ba8dc2c92639190016253b00 (patch)
tree4f848cf74a49b12e8a62c978cd14890e33ae05bc /external/libetonyek
parent37eeb4767b7bad61436e645007780a040720476b (diff)
external/libetonyek: drop "register", for C++17
> Oct 24 18:21:51 <sberg_> dtardon, why is libetonyek-0.1.7.tar.xz containing > generated src/lib/KEY1Token.inc; is that by design or by mistake? > Oct 24 18:23:32 <dtardon> sberg_, that's for windows > Oct 24 18:24:15 <sberg_> dtardon, yuck; then you should at least have > generated it with a gperf that no longer emits "register" ;) > Oct 24 18:25:35 <dtardon> sberg_, bundled libetonyek is built as shared lib; > the windows build is done as a Library, because the gcc wrapper for msvc > cannot do shared libs. and it's easier to include the .inc files in the > tarball than to re-create them using a CustomTarget inside libreoffice... > Oct 24 18:25:58 <dtardon> sberg_, i'm using gperf on f27 > Oct 24 18:26:19 <dtardon> ... which is 3.1 > Oct 24 18:29:26 <sberg_> dtardon, then maybe they only fixed gperf past 3.1; I > have a local checkout (that still claims to be 3.1, though) that came with a > commit dropping that "register" usage Change-Id: I6a3d965cedbe05582d9e42f5595876c19a1b91a6
Diffstat (limited to 'external/libetonyek')
-rw-r--r--external/libetonyek/UnpackedTarball_libetonyek.mk1
-rw-r--r--external/libetonyek/c++17.patch11
2 files changed, 12 insertions, 0 deletions
diff --git a/external/libetonyek/UnpackedTarball_libetonyek.mk b/external/libetonyek/UnpackedTarball_libetonyek.mk
index f178b469e028..1b59b77cab97 100644
--- a/external/libetonyek/UnpackedTarball_libetonyek.mk
+++ b/external/libetonyek/UnpackedTarball_libetonyek.mk
@@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libetonyek,\
external/libetonyek/ubsan.patch \
external/libetonyek/rpath.patch \
external/libetonyek/0001-add-missing-include-for-std-min.patch.1 \
+ external/libetonyek/c++17.patch \
))
ifneq ($(OS),MACOSX)
diff --git a/external/libetonyek/c++17.patch b/external/libetonyek/c++17.patch
new file mode 100644
index 000000000000..bc4e9b96a46a
--- /dev/null
+++ b/external/libetonyek/c++17.patch
@@ -0,0 +1,11 @@
+--- src/lib/KEY1Token.inc
++++ src/lib/KEY1Token.inc
+@@ -524,7 +524,7 @@
+
+ if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
+ {
+- register int key = hash (str, len);
++ int key = hash (str, len);
+
+ if (key <= MAX_HASH_VALUE && key >= 0)
+ {