compile on VS2010, without C11

This commit is contained in:
Enno Rehling 2014-01-02 22:00:52 -08:00
parent 4a08cdd23e
commit 5af91b21aa
2 changed files with 3 additions and 2 deletions

View File

@ -32,10 +32,11 @@ static int tolua_storage_create(lua_State * L)
const char *type = tolua_tostring(L, 2, "rb");
gamedata *data = (gamedata *)calloc(1, sizeof(gamedata));
storage *store = (storage *)calloc(1, sizeof(storage));
FILE * F;
data->store = store;
FILE *F = fopen(filename, type);
F = fopen(filename, type);
if (strchr(type, 'r')) {
fread(&data->version, sizeof(int), 1, F);
fseek(F, sizeof(int), SEEK_CUR);

View File

@ -9,8 +9,8 @@
*/
#include <platform.h>
#include <curses.h>
#include <util/bool.h>
#include <curses.h>
#include <kernel/config.h>