summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2014-08-21 12:29:48 +0000
committerLauri Kasanen <cand@gmx.com>2014-08-21 12:29:48 +0000
commit64dd5df14145b95ee1730468c43afd60bfc7600a (patch)
tree5b64002dec59a36e6e48fe7e69a8cc23503fe364 /FL
parentfc71f3d1caa772bc41e0a679fa29bbef20f4da9a (diff)
Enable symbol visibility on Linux, bringing a shared libfltk on par with Windows.
Also drops the size of libfltk.so nicely. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10236 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Export.H2
1 files changed, 2 insertions, 0 deletions
diff --git a/FL/Fl_Export.H b/FL/Fl_Export.H
index 39a3ef627..c239910eb 100644
--- a/FL/Fl_Export.H
+++ b/FL/Fl_Export.H
@@ -29,6 +29,8 @@
# else
# define FL_EXPORT __declspec(dllimport)
# endif /* FL_LIBRARY */
+# elif __GNUC__ >= 4
+# define FL_EXPORT __attribute__ ((visibility ("default")))
# else
# define FL_EXPORT
# endif /* FL_DLL */