summaryrefslogtreecommitdiff
path: root/src/gd.h
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2015-01-19 06:35:20 +0100
committerPierre Joye <pierre.php@gmail.com>2015-01-19 06:35:20 +0100
commitf680978aa8a83957027d6a339a1e22c62853fd15 (patch)
tree8917a266384a8648bb7fe9bb690352e7bceaad37 /src/gd.h
parentb1267265251cc40a1ee601e5761854b453ac5c4e (diff)
downloadlibgd-f680978aa8a83957027d6a339a1e22c62853fd15.tar.gz
fix #94, HAVE_VISIBILITY may be defined but set to 0
Diffstat (limited to 'src/gd.h')
-rw-r--r--src/gd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gd.h b/src/gd.h
index 14e78c7..51220e1 100644
--- a/src/gd.h
+++ b/src/gd.h
@@ -65,7 +65,7 @@ extern "C" {
# define BGD_STDCALL __stdcall
# define BGD_EXPORT_DATA_IMPL
#else
-# ifdef HAVE_VISIBILITY
+# ifdef HAVE_VISIBILITY && HAVE_VISIBILITY==1
# define BGD_EXPORT_DATA_PROT __attribute__ ((visibility ("default")))
# define BGD_EXPORT_DATA_IMPL __attribute__ ((visibility ("hidden")))
# else