From: Bruno Haible Date: Sun, 24 Aug 2003 18:55:06 +0000 (+0000) Subject: Support for building DLLs on Windows. X-Git-Tag: v0.13~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b42552704b114dc2a9f81b42dad30580ea101164;p=thirdparty%2Fgettext.git Support for building DLLs on Windows. --- diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac index 65cb7729e..614b78bbc 100644 --- a/gettext-runtime/configure.ac +++ b/gettext-runtime/configure.ac @@ -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" diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 758e12d91..0a0f37632 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -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"