diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-04-12 16:28:24 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-04-12 16:28:24 +0200 |
commit | 024d6eff31ebd4918ff6a8b8d83aa6ffab32d39f (patch) | |
tree | a7303075bb3a8b3a2e624db6a884bd02910e46f0 | |
parent | 4eb4e29e27c9ab19d3d139c9f756c0745b22587b (diff) | |
download | libgd-024d6eff31ebd4918ff6a8b8d83aa6ffab32d39f.tar.gz |
Add back 'extern' keyword for header declarations for GCC builds
-rw-r--r-- | src/gd.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |