From 29c56644b0e99af47a05e1082738ffe5aff9bdd9 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 4 Aug 2015 18:13:39 -0400 Subject: [PATCH] Visual Studio 2015 support. --- example/client.vcxproj | 4 +++- example/server.vcxproj | 6 ++++-- httplib.h | 2 +- test/test.vcxproj | 10 +++++----- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/example/client.vcxproj b/example/client.vcxproj index a00f015..51d06c1 100644 --- a/example/client.vcxproj +++ b/example/client.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -20,12 +20,14 @@ Application true Unicode + v140 Application false true Unicode + v140 diff --git a/example/server.vcxproj b/example/server.vcxproj index a8e91e6..f4e7181 100644 --- a/example/server.vcxproj +++ b/example/server.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -20,12 +20,14 @@ Application true Unicode + v140 Application false true Unicode + v140 @@ -83,4 +85,4 @@ - + \ No newline at end of file diff --git a/httplib.h b/httplib.h index 74af63c..ad47a21 100644 --- a/httplib.h +++ b/httplib.h @@ -18,7 +18,7 @@ #ifndef SO_OPENTYPE #define SO_OPENTYPE 0x7008 #endif -#ifndef snprintf +#if (_MSC_VER < 1900) #define snprintf _snprintf_s #endif diff --git a/test/test.vcxproj b/test/test.vcxproj index 5ac1b53..b19fd4c 100644 --- a/test/test.vcxproj +++ b/test/test.vcxproj @@ -1,5 +1,5 @@  - + Debug @@ -27,26 +27,26 @@ Application true - v120 + v140 Unicode Application true - v120 + v140 Unicode Application false - v120 + v140 true Unicode Application false - v120 + v140 true Unicode