summaryrefslogtreecommitdiff
path: root/gio
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-02-13 11:46:59 +0000
committerPhilip Withnall <withnall@endlessm.com>2017-03-23 14:58:46 +0000
commit553329358c9e6845d567bb7367ae404c21d22dea (patch)
tree231b3ec442ef3801f64bbb521d018326dece0735 /gio
parent92cb02392c531e70a1d190f3ebad33101c02fea4 (diff)
downloadglib-553329358c9e6845d567bb7367ae404c21d22dea.tar.gz
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
Diffstat (limited to 'gio')
0 files changed, 0 insertions, 0 deletions