From 64dd5df14145b95ee1730468c43afd60bfc7600a Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Thu, 21 Aug 2014 12:29:48 +0000 Subject: 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 --- FL/Fl_Export.H | 2 ++ 1 file changed, 2 insertions(+) (limited to 'FL') 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 */ -- cgit v1.2.3