Permalink
Browse files

Required fixes for properly exporting the new symbols.

  • Loading branch information...
peterix committed Nov 19, 2010
1 parent c13b7c0 commit 8439b3fa7d48b1f48bc2e5128484613e9d14cd55
Showing with 7 additions and 6 deletions.
  1. +3 −3 library/DFTileTypes.cpp
  2. +4 −3 library/include/dfhack/DFTileTypes.h
View
@@ -6,23 +6,23 @@
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
};
#undef X
//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
};
#undef X
//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
};
@@ -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

0 comments on commit 8439b3f

Please sign in to comment.