From eb704832a91423b5fa13b56efebe2db452f0afbc Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 1 May 2020 20:36:11 -0400 Subject: [PATCH] build fix for platforms that have no LUA awareness during makedefs compile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 */ ^ --- include/dungeon.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dungeon.h b/include/dungeon.h index 34ae5afdf..a10ededbb 100644 --- a/include/dungeon.h +++ b/include/dungeon.h @@ -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