do not emit that MSVC warning.

fix a missing include.
This commit is contained in:
Enno Rehling 2013-12-29 00:21:10 -08:00
parent 6521fed160
commit a112dc908e
2 changed files with 8 additions and 0 deletions

View File

@ -205,3 +205,9 @@ add_executable(${PROJECT_NAME}_test ${TEST_SRC})
target_link_libraries(${PROJECT_NAME}_test ${ERESSEA_LIBRARY}) target_link_libraries(${PROJECT_NAME}_test ${ERESSEA_LIBRARY})
add_test(${PROJECT_NAME} ${PROJECT_NAME}_test) add_test(${PROJECT_NAME} ${PROJECT_NAME}_test)
IF (MSVC)
find_package (MSVC MODULE)
MSVC_CRT_SECURE_NO_WARNINGS (${ERESSEA_LIBRARY})
ENDIF (MSVC)

View File

@ -13,6 +13,8 @@
#include <tolua.h> #include <tolua.h>
#include <string.h>
static int tolua_run_mapper(lua_State * L) static int tolua_run_mapper(lua_State * L)
{ {
run_mapper(); run_mapper();