Add macro _CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE for msvc to avoid warnings

This commit is contained in:
Joris Dauphin 2011-04-11 19:13:16 +02:00
parent fe3235174d
commit e6c279718f

View file

@ -554,6 +554,11 @@ if(WIN32)
set(stratagus_LIBS ${stratagus_LIBS} dsound dxguid winmm ws2_32)
endif()
if (MSVC)
# Avoid some warnings
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE=1)
endif()
if(APPLE)
add_definitions(-DUSE_MAC)
endif()