* gettext-runtime/configure.ac: Prefer the term "shared library", since the term
"DLL" applies only to Windows.
* gettext-runtime/intl/configure.ac: Likewise.
* gettext-tools/configure.ac: Likewise.
* gettext-runtime/intl/export.h (LIBINTL_SHLIB_EXPORTED): Renamed from
LIBINTL_DLL_EXPORTED. Prefer the term "shared library", since the term "DLL"
applies only to Windows.
* gettext-runtime/intl/Makefile.am (AM_CPPFLAGS): Update comment.
(libgnuintl.h): Insert LIBINTL_SHLIB_EXPORTED instead of LIBINTL_DLL_EXPORTED.
* gettext-runtime/intl/gettextP.h: Use LIBGLOCALE_SHLIB_EXPORTED instead of
LIBGLOCALE_DLL_EXPORTED. Use LIBINTL_SHLIB_EXPORTED instead of
LIBINTL_DLL_EXPORTED.
* gettext-runtime/intl/loadinfo.h (LIBINTL_SHLIB_EXPORTED): Renamed from
LIBINTL_DLL_EXPORTED.
* gettext-runtime/intl/intl-compat.c (SHLIB_EXPORTED): Renamed from
DLL_EXPORTED. Prefer the term "shared library", since the term "DLL" applies
only to Windows.
* gettext-runtime/intl/printf.c (SHLIB_EXPORTED): Likewise.
* gettext-runtime/intl/setlocale.c (SHLIB_EXPORTED): Likewise.
* gettext-tools/woe32dll/export.h: Update comment.
/* On Windows, variables that may be in a DLL must be marked specially.
The symbols marked with DLL_VARIABLE should be exported if and only if the
object file gets included in a DLL. Libtool, on Windows platforms, defines
- the C macro DLL_EXPORT (together with PIC) when compiling for a DLL
- and does not define it when compiling an object file meant to be linked
- statically into some executable. */
+ the C macro DLL_EXPORT (together with PIC) when compiling for a shared
+ library (called DLL under Windows) and does not define it when compiling
+ an object file meant to be linked statically into some executable. */
#if (defined _WIN32 || defined __CYGWIN__) && defined DLL_EXPORT && !defined IN_RELOCWRAPPER
# define DLL_VARIABLE __declspec (dllimport)
#else
MAINTAINERCLEANFILES =
SUFFIXES =
-# -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro.
-# -DBUILDING_DLL: Change expansion of DLL_EXPORTED macro. We're compiling
+# -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.
AM_CPPFLAGS = \
-Ignulib-lib -I$(srcdir)/gnulib-lib \
else \
cat; \
fi \
- | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \
+ | sed -e 's/extern \([^"]\)/extern LIBINTL_SHLIB_EXPORTED \1/' \
-e "/#define _LIBINTL_H/r $(srcdir)/export.h" \
| sed -e '/#define _LIBINTL_H/,/[*][/]$$/{/#define _LIBINTL_H/!d;}' \
| sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \
/* On Windows, variables that may be in a DLL must be marked specially.
The symbols marked with DLL_VARIABLE should be exported if and only if the
object file gets included in a DLL. Libtool, on Windows platforms, defines
- the C macro DLL_EXPORT (together with PIC) when compiling for a DLL
- and does not define it when compiling an object file meant to be linked
- statically into some executable. */
+ the C macro DLL_EXPORT (together with PIC) when compiling for a shared
+ library (called DLL under Windows) and does not define it when compiling
+ an object file meant to be linked statically into some executable. */
#if (defined _MSC_VER && defined DLL_EXPORT) && !defined IN_RELOCWRAPPER
# define DLL_VARIABLE __declspec (dllimport)
#else
along with this program. If not, see <https://www.gnu.org/licenses/>. */
#if @HAVE_VISIBILITY@ && BUILDING_LIBINTL
-# define LIBINTL_DLL_EXPORTED __attribute__((__visibility__("default")))
+# define LIBINTL_SHLIB_EXPORTED __attribute__((__visibility__("default")))
#elif (defined _WIN32 && !defined __CYGWIN__) && @WOE32DLL@ && BUILDING_LIBINTL
/* The symbols from this file should be exported if and only if the object
file gets included in a DLL. Libtool, on Windows platforms, defines
- the C macro DLL_EXPORT (together with PIC) when compiling for a DLL
- and does not define it when compiling an object file meant to be linked
- statically into some executable. */
+ the C macro DLL_EXPORT (together with PIC) when compiling for a shared
+ library (called DLL under Windows) and does not define it when compiling
+ an object file meant to be linked statically into some executable. */
# if defined DLL_EXPORT
-# define LIBINTL_DLL_EXPORTED __declspec(dllexport)
+# define LIBINTL_SHLIB_EXPORTED __declspec(dllexport)
# else
-# define LIBINTL_DLL_EXPORTED
+# define LIBINTL_SHLIB_EXPORTED
# endif
#elif (defined _WIN32 && !defined __CYGWIN__) && @WOE32DLL@
-# define LIBINTL_DLL_EXPORTED __declspec(dllimport)
+# define LIBINTL_SHLIB_EXPORTED __declspec(dllimport)
#else
-# define LIBINTL_DLL_EXPORTED
+# define LIBINTL_SHLIB_EXPORTED
#endif
#endif
#ifdef IN_LIBGLOCALE
# include <glocale/config.h>
-extern LIBGLOCALE_DLL_EXPORTED int _nl_msg_cat_cntr;
+extern LIBGLOCALE_SHLIB_EXPORTED int _nl_msg_cat_cntr;
#else
-extern LIBINTL_DLL_EXPORTED int _nl_msg_cat_cntr;
+extern LIBINTL_SHLIB_EXPORTED int _nl_msg_cat_cntr;
#endif
#ifndef _LIBC
#undef bind_textdomain_codeset
-/* When building a DLL, we must export some functions. Note that because
- the functions are only defined for binary backward compatibility, we
- don't need to use __declspec(dllimport) in any case. */
+/* 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
-# define DLL_EXPORTED __attribute__((__visibility__("default")))
+# define SHLIB_EXPORTED __attribute__((__visibility__("default")))
#elif defined _MSC_VER && BUILDING_DLL
/* When building with MSVC, exporting a symbol means that the object file
contains a "linker directive" of the form /EXPORT:symbol. This can be
"dumpbin /directives FILE" commands.
The symbols from this file should be exported if and only if the object
file gets included in a DLL. Libtool, on Windows platforms, defines
- the C macro DLL_EXPORT (together with PIC) when compiling for a DLL
- and does not define it when compiling an object file meant to be linked
- statically into some executable. */
+ the C macro DLL_EXPORT (together with PIC) when compiling for a shared
+ library (called DLL under Windows) and does not define it when compiling
+ an object file meant to be linked statically into some executable. */
# if defined DLL_EXPORT
-# define DLL_EXPORTED __declspec(dllexport)
+# define SHLIB_EXPORTED __declspec(dllexport)
# else
-# define DLL_EXPORTED
+# define SHLIB_EXPORTED
# endif
#else
-# define DLL_EXPORTED
+# define SHLIB_EXPORTED
#endif
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
gettext (const char *msgid)
{
}
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
dgettext (const char *domainname, const char *msgid)
{
}
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
dcgettext (const char *domainname, const char *msgid, int category)
{
}
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
ngettext (const char *msgid1, const char *msgid2, unsigned long int n)
{
}
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
dngettext (const char *domainname,
const char *msgid1, const char *msgid2, unsigned long int n)
}
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
dcngettext (const char *domainname,
const char *msgid1, const char *msgid2, unsigned long int n,
}
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
textdomain (const char *domainname)
{
}
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
bindtextdomain (const char *domainname, const char *dirname)
{
}
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
bind_textdomain_codeset (const char *domainname, const char *codeset)
{
# define internal_function
#endif
-#ifndef LIBINTL_DLL_EXPORTED
-# define LIBINTL_DLL_EXPORTED
+#ifndef LIBINTL_SHLIB_EXPORTED
+# define LIBINTL_SHLIB_EXPORTED
#endif
/* Tell the compiler when a conditional or integer expression is
NAME is not a locale alias (but possibly a real locale name).
The return value is statically allocated and must not be freed. */
/* Part of the libintl ABI only for the sake of the gettext.m4 macro. */
-extern LIBINTL_DLL_EXPORTED const char *_nl_expand_alias (const char *name);
+extern LIBINTL_SHLIB_EXPORTED const char *_nl_expand_alias (const char *name);
/* Split a locale name NAME into its pieces: language, modifier,
territory, codeset.
# define EOVERFLOW E2BIG
#endif
-/* When building a DLL, we must export some functions. Note that because
- the functions are only defined for binary backward compatibility, we
- don't need to use __declspec(dllimport) in any case. */
+/* 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
-# define DLL_EXPORTED __attribute__((__visibility__("default")))
+# define SHLIB_EXPORTED __attribute__((__visibility__("default")))
#elif defined _MSC_VER && BUILDING_DLL
/* When building with MSVC, exporting a symbol means that the object file
contains a "linker directive" of the form /EXPORT:symbol. This can be
"dumpbin /directives FILE" commands.
The symbols from this file should be exported if and only if the object
file gets included in a DLL. Libtool, on Windows platforms, defines
- the C macro DLL_EXPORT (together with PIC) when compiling for a DLL
- and does not define it when compiling an object file meant to be linked
- statically into some executable. */
+ the C macro DLL_EXPORT (together with PIC) when compiling for a shared
+ library (called DLL under Windows) and does not define it when compiling
+ an object file meant to be linked statically into some executable. */
# if defined DLL_EXPORT
-# define DLL_EXPORTED __declspec(dllexport)
+# define SHLIB_EXPORTED __declspec(dllexport)
# else
-# define DLL_EXPORTED
+# define SHLIB_EXPORTED
# endif
#else
-# define DLL_EXPORTED
+# define SHLIB_EXPORTED
#endif
#define STATIC static
the *printf functions with _INTL_ATTRIBUTE_FORMAT_PRINTF_STANDARD. */
#define USE_REPLACEMENT_CODE_ALWAYS 1
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_vfprintf (FILE *stream, const char *format, va_list args)
{
}
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_fprintf (FILE *stream, const char *format, ...)
{
return retval;
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_vprintf (const char *format, va_list args)
{
return libintl_vfprintf (stdout, format, args);
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_printf (const char *format, ...)
{
return retval;
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_vsprintf (char *resultbuf, const char *format, va_list args)
{
}
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_sprintf (char *resultbuf, const char *format, ...)
{
# define system_vsnprintf vsnprintf
# endif
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_vsnprintf (char *resultbuf, size_t length, const char *format, va_list args)
{
}
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_snprintf (char *resultbuf, size_t length, const char *format, ...)
{
#if HAVE_ASPRINTF
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_vasprintf (char **resultp, const char *format, va_list args)
{
return length;
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_asprintf (char **resultp, const char *format, ...)
{
# define system_vswprintf vswprintf
# endif
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_vfwprintf (FILE *stream, const wchar_t *format, va_list args)
{
}
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_fwprintf (FILE *stream, const wchar_t *format, ...)
{
return retval;
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_vwprintf (const wchar_t *format, va_list args)
{
return libintl_vfwprintf (stdout, format, args);
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_wprintf (const wchar_t *format, ...)
{
return retval;
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_vswprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, va_list args)
{
}
}
-DLL_EXPORTED
+SHLIB_EXPORTED
int
libintl_swprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, ...)
{
#include <stdlib.h>
#include <string.h>
-/* When building a DLL, we must export some functions. Note that because
- the functions are only defined for binary backward compatibility, we
- don't need to use __declspec(dllimport) in any case. */
+/* 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
-# define DLL_EXPORTED __attribute__((__visibility__("default")))
+# define SHLIB_EXPORTED __attribute__((__visibility__("default")))
#elif defined _MSC_VER && BUILDING_DLL
/* When building with MSVC, exporting a symbol means that the object file
contains a "linker directive" of the form /EXPORT:symbol. This can be
"dumpbin /directives FILE" commands.
The symbols from this file should be exported if and only if the object
file gets included in a DLL. Libtool, on Windows platforms, defines
- the C macro DLL_EXPORT (together with PIC) when compiling for a DLL
- and does not define it when compiling an object file meant to be linked
- statically into some executable. */
+ the C macro DLL_EXPORT (together with PIC) when compiling for a shared
+ library (called DLL under Windows) and does not define it when compiling
+ an object file meant to be linked statically into some executable. */
# if defined DLL_EXPORT
-# define DLL_EXPORTED __declspec(dllexport)
+# define SHLIB_EXPORTED __declspec(dllexport)
# else
-# define DLL_EXPORTED
+# define SHLIB_EXPORTED
# endif
#else
-# define DLL_EXPORTED
+# define SHLIB_EXPORTED
#endif
#include "localename.h"
# endif
-DLL_EXPORTED
+SHLIB_EXPORTED
char *
libintl_setlocale (int category, const char *locale)
{
# if HAVE_NEWLOCALE
-DLL_EXPORTED
+SHLIB_EXPORTED
locale_t
libintl_newlocale (int category_mask, const char *locale, locale_t base)
{
/* On Windows, variables that may be in a DLL must be marked specially.
The symbols marked with DLL_VARIABLE should be exported if and only if the
object file gets included in a DLL. Libtool, on Windows platforms, defines
- the C macro DLL_EXPORT (together with PIC) when compiling for a DLL
- and does not define it when compiling an object file meant to be linked
- statically into some executable. */
+ the C macro DLL_EXPORT (together with PIC) when compiling for a shared
+ library (called DLL under Windows) and does not define it when compiling
+ an object file meant to be linked statically into some executable. */
#if (defined _WIN32 || defined __CYGWIN__) && defined DLL_EXPORT && !defined IN_RELOCWRAPPER
# define DLL_VARIABLE __declspec (dllimport)
#else
to define a -DBUILDING_LIBXYZ flag for the library.
Example:
#ifdef BUILDING_LIBICONV
- #define LIBICONV_DLL_EXPORTED __declspec(dllexport)
+ #define LIBICONV_SHLIB_EXPORTED __declspec(dllexport)
#else
- #define LIBICONV_DLL_EXPORTED __declspec(dllimport)
+ #define LIBICONV_SHLIB_EXPORTED __declspec(dllimport)
#endif
We use this technique for the libintl and the libiconv libraries.