build: fix build in VS 2017 rc

This commit is contained in:
Eric Wasylishen 2017-03-01 18:49:12 -08:00
parent 461afbc15d
commit 3948541458
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ endif ()
add_definitions(-DTYRUTILS_VERSION=${GIT_DESCRIBE})
if (MSVC)
add_definitions("/DWIN32")
# TODO: remove these
add_definitions("/D_CRT_SECURE_NO_WARNINGS")
add_definitions("/wd4244") # disable "conversion from .. to .., possible loss of data" warning