fix build

This commit is contained in:
Enno Rehling 2016-02-09 14:08:36 +01:00
parent 997d81e34a
commit 87aa7c887e
2 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef __cplusplus
extern "C" {
#endif
struct attrib;
struct attrib_type;
extern struct attrib_type at_key;
extern struct attrib_type at_keys;

View File

@ -68,6 +68,7 @@ static void test_readwrite_attrib(CuTest *tc) {
attrib *a = NULL;
const char *path = "attrib.dat";
test_cleanup();
global.data_version = RELEASE_VERSION; // FIXME: hack!
data = gamedata_open(path, "wb");
CuAssertPtrNotNull(tc, data);
key_set(&a, 41);