@ -29,6 +29,10 @@ include(FindLua51)
if(NOT ${LUA51_FOUND})
message(FATAL_ERROR "The FindLua51 module could not find lua :-(")
endif()
if(WIN32)
set(COMMON_CFLAGS "${COMMON_CFLAGS} -I${LUA_INCLUDE_DIR}")
set(COMMON_LDFLAGS "${COMMON_LDFLAGS} ${LUA_LIBRARY}")
## MAC OSX needs extra linker flags
if(APPLE)
set(COMMON_LDFLAGS "${COMMON_LDFLAGS} -undefined dynamic_lookup")
@ -42,6 +42,7 @@
/* for MinGW32 compiler need to include <stdint.h> */
#ifdef __GNUC__
#include <stdint.h>
#include <stdbool.h>
#else
/* define some standard types missing on Windows. */