]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix build error with MSVC.
authorBruno Haible <bruno@clisp.org>
Thu, 4 Jul 2019 14:27:37 +0000 (16:27 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 10:51:45 +0000 (12:51 +0200)
* gettext-runtime/intl/export.h (LIBINTL_DLL_EXPORTED): Define differently for
MSVC.

gettext-runtime/intl/export.h

index b5c47ad5b311d1968ab50807b609a3a006e98e0c..10253e338b719604d965c079679b3151b56047fc 100644 (file)
@@ -1,6 +1,8 @@
 
 #if @HAVE_VISIBILITY@ && BUILDING_LIBINTL
 #define LIBINTL_DLL_EXPORTED __attribute__((__visibility__("default")))
+#elif defined _MSC_VER && BUILDING_LIBINTL
+#define LIBINTL_DLL_EXPORTED __declspec(dllexport)
 #else
 #define LIBINTL_DLL_EXPORTED
 #endif