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

master
Ondřej Surý 2013-05-05 10:40:59 +02:00
parent c03a71afe4
commit e0659e5d34
6 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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