fix build for msvc 2013

This commit is contained in:
Colby Klein 2017-09-10 15:23:33 -07:00 committed by Bjorn Swenson
parent 80e3d3487a
commit 5fb58b3a0f
1 changed files with 5 additions and 0 deletions

View File

@ -280,6 +280,11 @@ else()
set(LOVR_HEADSET src/headset/openvr.c)
endif()
if (MSVC_VERSION VERSION_LESS 1900)
add_definitions(-Dinline=__inline)
add_definitions(-Dsnprintf=_snprintf)
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
add_executable(lovr ${LOVR_SRC} ${LOVR_HEADSET})
target_link_libraries(lovr