From 7f2e42a06da9321c15f27ef8570a10306fa0cd0b Mon Sep 17 00:00:00 2001 From: Alexander Alashkin Date: Fri, 16 Oct 2015 09:26:54 +0100 Subject: [PATCH] Fix MSVC2015 build and add VC project PUBLISHED_FROM=d071ecd0bdcc871cdd18a65c1ebb8b546ff61941 --- examples/http_client/http_client.vcxproj | 163 +++++++++++++++++++++++ mongoose.h | 2 + 2 files changed, 165 insertions(+) create mode 100644 examples/http_client/http_client.vcxproj diff --git a/examples/http_client/http_client.vcxproj b/examples/http_client/http_client.vcxproj new file mode 100644 index 00000000..30c61156 --- /dev/null +++ b/examples/http_client/http_client.vcxproj @@ -0,0 +1,163 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + TurnOffAllWarnings + TurnOffAllWarnings + + + + + + + + {BDF3FC6F-2658-4A27-846D-6A45FB53C602} + Win32Proj + http_client + 8.1 + + + + Application + true + v140 + Unicode + + + Application + false + v140 + true + Unicode + + + Application + true + v140 + Unicode + + + Application + false + v140 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + + + Level4 + Disabled + WIN32;_DEBUG;_CONSOLE;MG_ENABLE_THREADS;%(PreprocessorDefinitions) + true + ./../../;%(AdditionalIncludeDirectories) + + + Console + true + + + + + + + Level3 + Disabled + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;MG_ENABLE_THREADS;%(PreprocessorDefinitions) + true + ./../../;%(AdditionalIncludeDirectories) + + + Console + true + true + true + + + + + Level3 + + + MaxSpeed + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + \ No newline at end of file diff --git a/mongoose.h b/mongoose.h index 97b3ad05..3c632884 100644 --- a/mongoose.h +++ b/mongoose.h @@ -68,6 +68,7 @@ #endif /* + * MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015) * MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013) * MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012) * MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010) @@ -129,6 +130,7 @@ #define __func__ __FILE__ ":" STR(__LINE__) #endif #define snprintf _snprintf +#define fileno _fileno #define vsnprintf _vsnprintf #define sleep(x) Sleep((x) *1000) #define to64(x) _atoi64(x)