]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Support for building DLLs on Windows.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Aug 2003 18:55:06 +0000 (18:55 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:54 +0000 (12:10 +0200)
gettext-runtime/configure.ac
gettext-tools/configure.ac

index 65cb7729e0c452ae6bb28b0149e4c95b3153767a..614b78bbc4835e03c93eacc1bb5ec8c073c0b80f 100644 (file)
@@ -92,6 +92,13 @@ AM_GNU_GETTEXT(use-libtool, need-ngettext)
 
 dnl Put some default definitions into config.h.
 AH_BOTTOM([
+/* On Windows, variables that may be in a DLL must be marked specially.  */
+#if defined _MSC_VER && defined _DLL
+# define DLL_VARIABLE __declspec (dllimport)
+#else
+# define DLL_VARIABLE
+#endif
+
 /* Extra OS/2 (emx+gcc) defines.  */
 #ifdef __EMX__
 # include "intl/os2compat.h"
index 758e12d91d23f2bd4edc0b0cc319dd483b89dd11..0a0f37632e259e6b506852dd51e50e17ef3d4616 100644 (file)
@@ -170,6 +170,13 @@ AH_BOTTOM([
    wrap the file position (#:) comments.  */
 #define PAGE_WIDTH 79
 
+/* On Windows, variables that may be in a DLL must be marked specially.  */
+#if defined _MSC_VER && defined _DLL
+# define DLL_VARIABLE __declspec (dllimport)
+#else
+# define DLL_VARIABLE
+#endif
+
 /* Extra OS/2 (emx+gcc) defines.  */
 #ifdef __EMX__
 # include "intl/os2compat.h"