forked from github/server
fix build
This commit is contained in:
parent
997d81e34a
commit
87aa7c887e
|
@ -21,7 +21,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
struct attrib;
|
||||||
|
struct attrib_type;
|
||||||
extern struct attrib_type at_key;
|
extern struct attrib_type at_key;
|
||||||
extern struct attrib_type at_keys;
|
extern struct attrib_type at_keys;
|
||||||
|
|
||||||
|
|
|
@ -68,6 +68,7 @@ static void test_readwrite_attrib(CuTest *tc) {
|
||||||
attrib *a = NULL;
|
attrib *a = NULL;
|
||||||
const char *path = "attrib.dat";
|
const char *path = "attrib.dat";
|
||||||
test_cleanup();
|
test_cleanup();
|
||||||
|
global.data_version = RELEASE_VERSION; // FIXME: hack!
|
||||||
data = gamedata_open(path, "wb");
|
data = gamedata_open(path, "wb");
|
||||||
CuAssertPtrNotNull(tc, data);
|
CuAssertPtrNotNull(tc, data);
|
||||||
key_set(&a, 41);
|
key_set(&a, 41);
|
||||||
|
|
Loading…
Reference in New Issue