Declare exported variables as extern in *.h files (fixes #57)
parent
c03a71afe4
commit
e0659e5d34
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue