summaryrefslogtreecommitdiff
path: root/hunspell
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-04-01 14:44:08 +0200
committerMichael Stahl <mstahl@redhat.com>2013-04-01 15:02:31 +0200
commitd060197a8dd0deb686fcb3941d37db9d71edc2df (patch)
tree1bcab44b7bc5476790e507215a0be2c7f2263e01 /hunspell
parent8ac3ad62af9066736797330b48e19202da3efb19 (diff)
hunspell: -Werror=undef
Change-Id: Ib6d015605005dd1fec4aa5351dbf6e72f06cd8ec
Diffstat (limited to 'hunspell')
-rw-r--r--hunspell/UnpackedTarball_hunspell.mk1
-rw-r--r--hunspell/hunspell-wundef.patch.111
2 files changed, 12 insertions, 0 deletions
diff --git a/hunspell/UnpackedTarball_hunspell.mk b/hunspell/UnpackedTarball_hunspell.mk
index 1e0544af0dac..2c532ea7fb25 100644
--- a/hunspell/UnpackedTarball_hunspell.mk
+++ b/hunspell/UnpackedTarball_hunspell.mk
@@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,hunspell,\
hunspell/hunspell-1.3.2-literal.patch \
hunspell/hunspell-1.3.2-compound.patch \
hunspell/hunspell.rhbz918938.patch \
+ hunspell/hunspell-wundef.patch.1 \
))
ifeq ($(COM),MSC)
diff --git a/hunspell/hunspell-wundef.patch.1 b/hunspell/hunspell-wundef.patch.1
new file mode 100644
index 000000000000..75131e06a2bc
--- /dev/null
+++ b/hunspell/hunspell-wundef.patch.1
@@ -0,0 +1,11 @@
+--- a/src/hunspell/hunvisapi.h.in 2013-04-01 14:41:16.507546705 +0200
++++ b/src/hunspell/hunvisapi.h.in 2013-04-01 14:41:24.537547190 +0200
+@@ -9,7 +9,7 @@
+ # else
+ # define LIBHUNSPELL_DLL_EXPORTED __declspec(dllimport)
+ # endif
+-#elif BUILDING_LIBHUNSPELL && @HAVE_VISIBILITY@
++#elif defined(BUILDING_LIBHUNSPELL) && @HAVE_VISIBILITY@
+ # define LIBHUNSPELL_DLL_EXPORTED __attribute__((__visibility__("default")))
+ #else
+ # define LIBHUNSPELL_DLL_EXPORTED