glib/gmodule
Philip Withnall 553329358c gmodule: Add the visibility attribute to G_MODULE_EXPORT on gcc
For versions of GCC which support it (≥ 4), define G_MODULE_EXPORT as
__attribute__((visibility("default"))). This is normally a no-op, unless
compiling with -fvisibility=hidden, in which case it marks a symbol to
be publicly exported from the library, which is what G_MODULE_EXPORT is
for. Previously G_MODULE_EXPORT has only worked on Windows.

The compatibility check for whether the compiler supports
__attribute__((visibility)) is based on the __GNUC__ define, and is
similar to the check done in configure.ac for defining G_GNUC_INTERNAL.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=778287
2017-03-23 14:58:46 +00:00
..
.gitignore improve gitignore 2010-01-28 22:43:51 -05:00
AUTHORS initial import of gmodule. 1998-08-09 08:32:18 +00:00
ChangeLog Update README files to refer to git 2009-03-31 19:39:16 -04:00
COPYING initial import of gmodule. 1998-08-09 08:32:18 +00:00
gmodule-ar.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gmodule-dl.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gmodule-dyld.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gmodule-win32.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gmodule.c gmodule: Add the visibility attribute to G_MODULE_EXPORT on gcc 2017-03-23 14:58:46 +00:00
gmodule.h gmodule: Add the visibility attribute to G_MODULE_EXPORT on gcc 2017-03-23 14:58:46 +00:00
gmodule.rc.in Update the year in the *.rc.in files 2011-06-07 08:55:31 +08:00
gmoduleconf.h.in Updated FSF's address 2014-01-31 14:31:55 +01:00
gmoduleconf.h.win32 Updated FSF's address 2014-01-31 14:31:55 +01:00
Makefile.am win32: fixup lib.exe invocation 2014-02-15 16:55:25 -05:00
makefile.msc.in adapt to gmodule.symbols usage 2008-08-01 14:17:43 +00:00