summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-04-12 16:28:24 +0200
committerOndřej Surý <ondrej@sury.org>2013-04-12 16:28:24 +0200
commit024d6eff31ebd4918ff6a8b8d83aa6ffab32d39f (patch)
treea7303075bb3a8b3a2e624db6a884bd02910e46f0
parent4eb4e29e27c9ab19d3d139c9f756c0745b22587b (diff)
downloadlibgd-024d6eff31ebd4918ff6a8b8d83aa6ffab32d39f.tar.gz
Add back 'extern' keyword for header declarations for GCC builds
-rw-r--r--src/gd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gd.h b/src/gd.h
index 1b28130..73454d6 100644
--- a/src/gd.h
+++ b/src/gd.h
@@ -32,11 +32,11 @@ extern "C" {
/* http://gcc.gnu.org/wiki/Visibility */
#ifdef NONDLL
# ifdef HAVE_VISIBILITY
-# define BGD_DECLARE(rt) __attribute__ ((visibility ("default"))) rt
+# define BGD_DECLARE(rt) __attribute__ ((visibility ("default"))) extern rt
# define BGD_EXPORT_DATA_PROT __attribute__ ((visibility ("default")))
# define BGD_EXPORT_DATA_IMPL __attribute__ ((visibility ("hidden")))
# else
-# define BGD_DECLARE(rt) rt
+# define BGD_DECLARE(rt) extern rt
# endif
#else
# ifdef BGDWIN32