summaryrefslogtreecommitdiffstats
path: root/gettext-tools/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-07-27 11:27:54 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:12:42 +0200
commit0ef9ec26435a02b72c97346e0d35580de048c8e0 (patch)
treea343c88e06f4b2e80e17d5d6c70262e0e3836dbf /gettext-tools/lib
parent3236af7163ddf0dda162f0d99f120a9eb9382540 (diff)
downloadexternal_gettext-0ef9ec26435a02b72c97346e0d35580de048c8e0.zip
external_gettext-0ef9ec26435a02b72c97346e0d35580de048c8e0.tar.gz
external_gettext-0ef9ec26435a02b72c97346e0d35580de048c8e0.tar.bz2
Tidy up exported symbols of libintl library.
Diffstat (limited to 'gettext-tools/lib')
-rw-r--r--gettext-tools/lib/ChangeLog6
-rw-r--r--gettext-tools/lib/relocatable.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog
index 452d607..5030905 100644
--- a/gettext-tools/lib/ChangeLog
+++ b/gettext-tools/lib/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-24 Bruno Haible <bruno@clisp.org>
+
+ Tidy up exported symbols.
+ * relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]: Define
+ to the gcc visibility attribute.
+
2005-07-22 Bruno Haible <bruno@clisp.org>
* Makefile.am: Remove rules depending on @STDBOOL_H@, @ALLOCA_H@,
diff --git a/gettext-tools/lib/relocatable.h b/gettext-tools/lib/relocatable.h
index 614e64e..f6d3832 100644
--- a/gettext-tools/lib/relocatable.h
+++ b/gettext-tools/lib/relocatable.h
@@ -1,5 +1,5 @@
/* Provide relocatable packages.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2005 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software; you can redistribute it and/or modify it
@@ -31,7 +31,9 @@ extern "C" {
/* When building a DLL, we must export some functions. Note that because
this is a private .h file, we don't need to use __declspec(dllimport)
in any case. */
-#if defined _MSC_VER && BUILDING_DLL
+#if HAVE_VISIBILITY && BUILDING_DLL
+# define RELOCATABLE_DLL_EXPORTED __attribute__((__visibility__("default")))
+#elif defined _MSC_VER && BUILDING_DLL
# define RELOCATABLE_DLL_EXPORTED __declspec(dllexport)
#else
# define RELOCATABLE_DLL_EXPORTED