From 6746933a3df7e7451554429074ad9ab9d7db94ec Mon Sep 17 00:00:00 2001
From: Alexander Alashkin <alexander.alashkin@cesanta.com>
Date: Thu, 15 Sep 2016 13:08:36 +0100
Subject: [PATCH] Fix Windows compilation

PUBLISHED_FROM=04bcd98025263f32d337730cf179bdfc35b683f1
---
 mongoose.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mongoose.h b/mongoose.h
index 304fa5d3a..6e55356fc 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -140,6 +140,7 @@
 #endif
 
 #define _WINSOCK_DEPRECATED_NO_WARNINGS 1
+#define _CRT_SECURE_NO_WARNINGS
 
 #include <assert.h>
 #include <direct.h>
@@ -163,6 +164,10 @@
 #include <windows.h>
 #include <process.h>
 
+#if defined(_MSC_VER) && _MSC_VER >= 1800
+#define strdup _strdup
+#endif
+
 #ifndef EINPROGRESS
 #define EINPROGRESS WSAEINPROGRESS
 #endif
-- 
GitLab