Commits

Ondřej Surý committed e0659e5

Declare exported variables as extern in *.h files (fixes #57)

Comments (0)

Files changed (6)

src/gd_color_map.h

 	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);
 
 
 #include "gd.h"
 
-BGD_EXPORT_DATA_PROT gdFontPtr gdFontGiant;
+extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontGiant;
 BGD_DECLARE(gdFontPtr) gdFontGetGiant(void);
 
 #ifdef __cplusplus
 
 #include "gd.h"
 
-BGD_EXPORT_DATA_PROT gdFontPtr gdFontLarge;
+extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontLarge;
 BGD_DECLARE(gdFontPtr) gdFontGetLarge(void);
 
 #ifdef __cplusplus
 
 #include "gd.h"
 
-BGD_EXPORT_DATA_PROT gdFontPtr gdFontMediumBold;
+extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontMediumBold;
 BGD_DECLARE(gdFontPtr) gdFontGetMediumBold(void);
 
 #ifdef __cplusplus
 
 #include "gd.h"
 
-BGD_EXPORT_DATA_PROT gdFontPtr gdFontSmall;
+extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontSmall;
 BGD_DECLARE(gdFontPtr) gdFontGetSmall(void);
 
 #ifdef __cplusplus
 
 #include "gd.h"
 
-BGD_EXPORT_DATA_PROT gdFontPtr gdFontTiny;
+extern BGD_EXPORT_DATA_PROT gdFontPtr gdFontTiny;
 BGD_DECLARE(gdFontPtr) gdFontGetTiny(void);
 
 #ifdef __cplusplus