From: Bruno Haible Date: Sat, 16 Sep 2023 10:50:44 +0000 (+0200) Subject: Fix another misnomer. X-Git-Tag: v0.23~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9ecd5ad5498f1d50d901d992f92332ebb23143;p=thirdparty%2Fgettext.git Fix another misnomer. * 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. --- diff --git a/gettext-runtime/intl/Makefile.am b/gettext-runtime/intl/Makefile.am index 99f4e0519..15d726b32 100644 --- a/gettext-runtime/intl/Makefile.am +++ b/gettext-runtime/intl/Makefile.am @@ -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 diff --git a/gettext-runtime/intl/intl-compat.c b/gettext-runtime/intl/intl-compat.c index c17f78285..7afbfc89b 100644 --- a/gettext-runtime/intl/intl-compat.c +++ b/gettext-runtime/intl/intl-compat.c @@ -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 diff --git a/gettext-runtime/intl/printf.c b/gettext-runtime/intl/printf.c index 25099ca8e..6f504124d 100644 --- a/gettext-runtime/intl/printf.c +++ b/gettext-runtime/intl/printf.c @@ -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 diff --git a/gettext-runtime/intl/setlocale.c b/gettext-runtime/intl/setlocale.c index a6a3f8006..3665dc465 100644 --- a/gettext-runtime/intl/setlocale.c +++ b/gettext-runtime/intl/setlocale.c @@ -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