]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix another misnomer.
authorBruno Haible <bruno@clisp.org>
Sat, 16 Sep 2023 10:50:44 +0000 (12:50 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 16 Sep 2023 10:50:44 +0000 (12:50 +0200)
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Set BUILDING_LIBRARY instead
of BUILDING_DLL.
* gettext-runtime/intl/intl-compat.c (SHLIB_EXPORTED): Test BUILDING_LIBRARY
instead of BUILDING_DLL.
* gettext-runtime/intl/printf.c (SHLIB_EXPORTED): Likewise.
* gettext-runtime/intl/setlocale.c (SHLIB_EXPORTED): Likewise.

gettext-runtime/intl/Makefile.am
gettext-runtime/intl/intl-compat.c
gettext-runtime/intl/printf.c
gettext-runtime/intl/setlocale.c

index 99f4e0519fe68c544d6e5a277822c9a89ef9ead3..15d726b32dd7f36901f13d97caba5af8faee3107 100644 (file)
@@ -32,12 +32,12 @@ MAINTAINERCLEANFILES =
 SUFFIXES =
 
 # -DBUILDING_LIBINTL: Change expansion of LIBINTL_SHLIB_EXPORTED macro.
-# -DBUILDING_DLL: Change expansion of SHLIB_EXPORTED macro. We're compiling
-#                 a library. Exporting the relevant symbols is desired.
+# -DBUILDING_LIBRARY: Change expansion of SHLIB_EXPORTED macro. We're compiling
+#                     a library. Exporting the relevant symbols is desired.
 AM_CPPFLAGS = \
   -Ignulib-lib -I$(srcdir)/gnulib-lib \
   -DLOCALEDIR=$(localedir_c_make) \
-  -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_DLL
+  -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_LIBRARY
 
 if WOE32
 # On mingw, disable the declarations of *printf functions as aliases to the
index c17f782857773681adc35ab059882f11a36ae38f..7afbfc89b3b47d9cd50e37249beb1da41153bd98 100644 (file)
@@ -54,9 +54,9 @@
 /* When building a shared library, we must export some functions.
    Note that because this is a .c file, not a .h file, we don't need to use
    __declspec(dllimport) in any case.  */
-#if HAVE_VISIBILITY && BUILDING_DLL
+#if HAVE_VISIBILITY && BUILDING_LIBRARY
 # define SHLIB_EXPORTED __attribute__((__visibility__("default")))
-#elif defined _MSC_VER && BUILDING_DLL
+#elif defined _MSC_VER && BUILDING_LIBRARY
 /* When building with MSVC, exporting a symbol means that the object file
    contains a "linker directive" of the form /EXPORT:symbol.  This can be
    inspected through the "objdump -s --section=.drectve FILE" or
index 25099ca8eb374fc9f4450787fedcc0911c1b85d1..6f504124decc209df46007d5632cc6256f978e87 100644 (file)
@@ -61,9 +61,9 @@ char *alloca ();
 /* When building a shared library, we must export some functions.
    Note that because this is a .c file, not a .h file, we don't need to use
    __declspec(dllimport) in any case.  */
-#if HAVE_VISIBILITY && BUILDING_DLL
+#if HAVE_VISIBILITY && BUILDING_LIBRARY
 # define SHLIB_EXPORTED __attribute__((__visibility__("default")))
-#elif defined _MSC_VER && BUILDING_DLL
+#elif defined _MSC_VER && BUILDING_LIBRARY
 /* When building with MSVC, exporting a symbol means that the object file
    contains a "linker directive" of the form /EXPORT:symbol.  This can be
    inspected through the "objdump -s --section=.drectve FILE" or
index a6a3f8006c93ae09a09a79fecf00f3b4102a463c..3665dc465a0ab3b59bbfb0714e476405ed5247ae 100644 (file)
@@ -36,9 +36,9 @@
 /* When building a shared library, we must export some functions.
    Note that because this is a .c file, not a .h file, we don't need to use
    __declspec(dllimport) in any case.  */
-#if HAVE_VISIBILITY && BUILDING_DLL
+#if HAVE_VISIBILITY && BUILDING_LIBRARY
 # define SHLIB_EXPORTED __attribute__((__visibility__("default")))
-#elif defined _MSC_VER && BUILDING_DLL
+#elif defined _MSC_VER && BUILDING_LIBRARY
 /* When building with MSVC, exporting a symbol means that the object file
    contains a "linker directive" of the form /EXPORT:symbol.  This can be
    inspected through the "objdump -s --section=.drectve FILE" or