From e0659e5d3499c3d5e8b85a3b0a05b7c7bd6bba87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Sun, 5 May 2013 10:40:59 +0200 Subject: [PATCH] Declare exported variables as extern in *.h files (fixes #57) --- src/gd_color_map.h | 2 +- src/gdfontg.h | 2 +- src/gdfontl.h | 2 +- src/gdfontmb.h | 2 +- src/gdfonts.h | 2 +- src/gdfontt.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gd_color_map.h b/src/gd_color_map.h index 9eb4a85..84e1f23 100644 --- a/src/gd_color_map.h +++ b/src/gd_color_map.h @@ -23,7 +23,7 @@ typedef struct { gdColorMapEntry *entries; } gdColorMap; -BGD_EXPORT_DATA_PROT gdColorMap GD_COLOR_MAP_X11; +extern BGD_EXPORT_DATA_PROT gdColorMap GD_COLOR_MAP_X11; BGD_DECLARE(int) gdColorMapLookup(const gdColorMap color_map, const char *color_name, int *r, int *g, int *b); diff --git a/src/gdfontg.h b/src/gdfontg.h index 93b5dc1..cc47ef0 100644 --- a/src/gdfontg.h +++ b/src/gdfontg.h @@ -22,7 +22,7 @@ extern "C" #include "gd.h" -BGD_EXPORT_DATA_PROT gdFontPtr gdFontGiant; +extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontGiant; BGD_DECLARE(gdFontPtr) gdFontGetGiant(void); #ifdef __cplusplus diff --git a/src/gdfontl.h b/src/gdfontl.h index 8c28f74..d915f0e 100644 --- a/src/gdfontl.h +++ b/src/gdfontl.h @@ -23,7 +23,7 @@ extern "C" #include "gd.h" -BGD_EXPORT_DATA_PROT gdFontPtr gdFontLarge; +extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontLarge; BGD_DECLARE(gdFontPtr) gdFontGetLarge(void); #ifdef __cplusplus diff --git a/src/gdfontmb.h b/src/gdfontmb.h index d10ec81..26bae58 100644 --- a/src/gdfontmb.h +++ b/src/gdfontmb.h @@ -21,7 +21,7 @@ extern "C" #include "gd.h" -BGD_EXPORT_DATA_PROT gdFontPtr gdFontMediumBold; +extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontMediumBold; BGD_DECLARE(gdFontPtr) gdFontGetMediumBold(void); #ifdef __cplusplus diff --git a/src/gdfonts.h b/src/gdfonts.h index b025613..f5d24e8 100644 --- a/src/gdfonts.h +++ b/src/gdfonts.h @@ -21,7 +21,7 @@ extern "C" #include "gd.h" -BGD_EXPORT_DATA_PROT gdFontPtr gdFontSmall; +extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontSmall; BGD_DECLARE(gdFontPtr) gdFontGetSmall(void); #ifdef __cplusplus diff --git a/src/gdfontt.h b/src/gdfontt.h index 90f5ad9..8d70256 100644 --- a/src/gdfontt.h +++ b/src/gdfontt.h @@ -22,7 +22,7 @@ extern "C" #include "gd.h" -BGD_EXPORT_DATA_PROT gdFontPtr gdFontTiny; +extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontTiny; BGD_DECLARE(gdFontPtr) gdFontGetTiny(void); #ifdef __cplusplus