summaryrefslogtreecommitdiff
path: root/dln.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-21 21:38:25 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-21 21:38:25 (GMT)
commit0bd71ff35455d308c838c00a7e16fd093d36e4d7 (patch)
treea010959775d708f50770d5bbf72cf053c6c56d3e /dln.h
parent6abe539cfc9b91178be7e1d75173165dcf6ca1bc (diff)
* configure.in (XCFLAGS): use -fvisibility=hidden if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.h')
-rw-r--r--dln.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/dln.h b/dln.h
index 47ff3ea..abbd6d8 100644
--- a/dln.h
+++ b/dln.h
@@ -28,6 +28,10 @@
# define _(args) ()
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
DEPRECATED(char *dln_find_exe(const char*,const char*));
DEPRECATED(char *dln_find_file(const char*,const char*));
char *dln_find_exe_r(const char*,const char*,char*,size_t);
@@ -38,4 +42,9 @@ extern char *dln_argv0;
#endif
void *dln_load(const char*);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#endif