[Define when --enable-shared is used on mingw or Cygwin.])
fi
-INTL_EXPORTS_FLAGS=
-dnl 64-bit mingw does not prepend an underscore to C symbols.
-dnl USER_LABEL_PREFIX is set by gl_ASM_SYMBOL_PREFIX, inside gl_INIT.
-if test "$USER_LABEL_PREFIX" = _; then
- INTL_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $INTL_EXPORTS_FLAGS"
-fi
-AC_SUBST([INTL_EXPORTS_FLAGS])
-
dnl Put some default definitions into config.h.
AH_BOTTOM([
/* On Windows, variables that may be in a DLL must be marked specially.
/* List of exported symbols of libintl on Cygwin.
- Copyright (C) 2006, 2012-2013 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2012-2020 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* IMP(x) is a symbol that contains the address of x. */
-#if USER_LABEL_PREFIX_UNDERSCORE
-# define IMP(x) _imp__##x
-#else
+#if defined _WIN64 || defined _LP64
# define IMP(x) __imp_##x
+#else
+# define IMP(x) _imp__##x
#endif
/* Ensure that the variable x is exported from the library, and that a
if test "$ac_cv_lib_error_at_line" = no; then
GETTEXTLIB_EXPORTS_FLAGS="-DGNULIB_DEFINED_ERROR $GETTEXTLIB_EXPORTS_FLAGS"
fi
-
-dnl 64-bit mingw does not prepend an underscore to C symbols.
-dnl USER_LABEL_PREFIX is set by gl_ASM_SYMBOL_PREFIX, inside gl_INIT.
-if test "$USER_LABEL_PREFIX" = _; then
- GETTEXTLIB_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $GETTEXTLIB_EXPORTS_FLAGS"
-fi
AC_SUBST([GETTEXTLIB_EXPORTS_FLAGS])
dnl Tell the source files that the error facility is replaced by
/* Exporting symbols from Cygwin shared libraries.
- Copyright (C) 2006, 2011-2018 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2011-2020 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
#if defined __GNUC__ /* GCC compiler, GNU toolchain */
/* IMP(x) is a symbol that contains the address of x. */
-#if USER_LABEL_PREFIX_UNDERSCORE
-# define IMP(x) _imp__##x
-#else
+#if defined _WIN64 || defined _LP64
# define IMP(x) __imp_##x
+#else
+# define IMP(x) _imp__##x
#endif
/* Ensure that the variable x is exported from the library, and that a
# Parametrization of the 'relocatable' module.
AM_CPPFLAGS += -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1
-# Tell the mingw or Cygwin linker which symbols to export.
-if WOE32DLL
-AM_CPPFLAGS += @INTL_EXPORTS_FLAGS@
-endif
-
Include:
License: