From 5fb58b3a0f9c01b43e53c4319fc3eb49f82ed1aa Mon Sep 17 00:00:00 2001 From: Colby Klein Date: Sun, 10 Sep 2017 15:23:33 -0700 Subject: [PATCH] fix build for msvc 2013 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33d72663..d8dde720 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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