]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Ensure that the intl-compat symbols are exported.
authorBruno Haible <bruno@clisp.org>
Mon, 1 Aug 2005 11:02:42 +0000 (11:02 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:42 +0000 (12:12 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/intl-compat.c

index 2fe4cc76e7f72f873e8d496384451de7bcc14451..637aa339d207ace78893e757a8c87c3ac6839bec 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-25  Bruno Haible  <bruno@clisp.org>
+
+       * intl-compat.c (DLL_EXPORTED) [HAVE_VISIBILITY]: Define to the gcc
+       visibility attribute.
+
 2005-07-24  Bruno Haible  <bruno@clisp.org>
 
        Tidy up exported symbols.
index 15be09cbcbe70f4850b9732c2b48b227f2267446..9b9ecbb648a7930249c4be075dba8fa9a662764b 100644 (file)
@@ -1,6 +1,6 @@
 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
    Library.
-   Copyright (C) 1995, 2000-2003 Software Foundation, Inc.
+   Copyright (C) 1995, 2000-2003, 2005 Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published
@@ -49,7 +49,9 @@
 /* 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.  */
-#if defined _MSC_VER && BUILDING_DLL
+#if HAVE_VISIBILITY && BUILDING_DLL
+# define DLL_EXPORTED __attribute__((__visibility__("default")))
+#elif defined _MSC_VER && BUILDING_DLL
 # define DLL_EXPORTED __declspec(dllexport)
 #else
 # define DLL_EXPORTED