diff --git a/library/DFTileTypes.cpp b/library/DFTileTypes.cpp index 3064aa007..964233e50 100644 --- a/library/DFTileTypes.cpp +++ b/library/DFTileTypes.cpp @@ -6,7 +6,7 @@ namespace DFHack { //set tile class string lookup table (e.g. for printing to user) #define X(name,comment) #name, - DFHACK_EXPORT const char * TileClassString[tileclass_count+1] = { + const char * TileClassString[tileclass_count+1] = { TILECLASS_MACRO 0 }; @@ -14,7 +14,7 @@ namespace DFHack { //string lookup table (e.g. for printing to user) #define X(name,comment) #name, - DFHACK_EXPORT const char * TileMaterialString[tilematerial_count+1] = { + const char * TileMaterialString[tilematerial_count+1] = { TILEMATERIAL_MACRO 0 }; @@ -22,7 +22,7 @@ namespace DFHack { //string lookup table (e.g. for printing to user) #define X(name,comment) #name, - DFHACK_EXPORT const char * TileSpecialString[tilespecial_count+1] = { + const char * TileSpecialString[tilespecial_count+1] = { TILESPECIAL_MACRO 0 }; diff --git a/library/include/dfhack/DFTileTypes.h b/library/include/dfhack/DFTileTypes.h index fe30e83ff..5637dc2ab 100644 --- a/library/include/dfhack/DFTileTypes.h +++ b/library/include/dfhack/DFTileTypes.h @@ -26,6 +26,7 @@ distribution. #define TILETYPES_H_INCLUDED #include "DFPragma.h" +#include "DFExport.h" namespace DFHack { @@ -62,7 +63,7 @@ namespace DFHack }; #undef X - extern const char *TileClassString[]; + DFHACK_EXPORT extern const char *TileClassString[]; #define TILEMATERIAL_MACRO \ X(AIR, "empty" ) \ @@ -96,7 +97,7 @@ namespace DFHack #undef X - extern const char *TileMaterialString[]; + DFHACK_EXPORT extern const char *TileMaterialString[]; // Special specials of the tile. // Not the best way to do this, but compatible with existing code. @@ -126,7 +127,7 @@ namespace DFHack }; #undef X - extern const char *TileSpecialString[]; + DFHACK_EXPORT extern const char *TileSpecialString[]; // variants are used for tiles, where there are multiple variants of the same - like grass floors enum TileVariant