build fix for platforms that have no LUA awareness during makedefs compile

gcc -c -O -I../include -I../sys/msdos -DDLB  -DUSE_TILES -DCROSSCOMPILE -DCROSSCOMPILE_HOST -ohost_o/makedefs.o ../util/makedefs.c
In file included from ../util/makedefs.c:18:0:
../include/dungeon.h:68:5: error: unknown type name ‘lua_State’
     lua_State *themelua;   /* themerms compiled lua */
     ^
This commit is contained in:
nhmall
2020-05-01 20:36:11 -04:00
parent 488e045156
commit eb704832a9

View File

@@ -53,6 +53,7 @@ typedef struct dest_area { /* non-stairway level change identifier */
xchar nhx, nhy; /* opposite corner of invalid area */
} dest_area;
#ifndef MAKEDEFS_C
typedef struct dungeon { /* basic dungeon identifier */
char dname[24]; /* name of the dungeon (eg. "Hell") */
char proto[15]; /* name of prototype file (eg. "tower") */
@@ -67,6 +68,7 @@ typedef struct dungeon { /* basic dungeon identifier */
depth_start; /* the starting depth in "logical" terms */
lua_State *themelua; /* themerms compiled lua */
} dungeon;
#endif /* MAKEDEFS_C */
/*
* A branch structure defines the connection between two dungeons. They