summaryrefslogtreecommitdiff
path: root/external/hunspell/hunspell-windows.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/hunspell/hunspell-windows.patch')
-rw-r--r--external/hunspell/hunspell-windows.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/external/hunspell/hunspell-windows.patch b/external/hunspell/hunspell-windows.patch
new file mode 100644
index 000000000000..357272d17c00
--- /dev/null
+++ b/external/hunspell/hunspell-windows.patch
@@ -0,0 +1,21 @@
+--- /dev/null 2016-03-15 09:11:25.292954614 +0000
++++ misc/hunspell-1.3.4/src/hunspell/hunvisapi.h 2016-04-06 16:40:47.181698825 +0100
+@@ -0,0 +1,18 @@
++#ifndef _HUNSPELL_VISIBILITY_H_
++#define _HUNSPELL_VISIBILITY_H_
++
++#if defined(HUNSPELL_STATIC)
++# define LIBHUNSPELL_DLL_EXPORTED
++#elif defined(_MSC_VER)
++# if defined(BUILDING_LIBHUNSPELL)
++# define LIBHUNSPELL_DLL_EXPORTED __declspec(dllexport)
++# else
++# define LIBHUNSPELL_DLL_EXPORTED __declspec(dllimport)
++# endif
++#elif defined(BUILDING_LIBHUNSPELL) && 1
++# define LIBHUNSPELL_DLL_EXPORTED __attribute__((__visibility__("default")))
++#else
++# define LIBHUNSPELL_DLL_EXPORTED
++#endif
++
++#endif