From c84af7d1e217444d7f97236a8c32175c64f93a21 Mon Sep 17 00:00:00 2001
From: Marko Mikulicic <mkm@cesanta.com>
Date: Wed, 11 May 2016 20:28:12 +0300
Subject: [PATCH] Use stdint.h on MSVC >= 2012

Closes cesanta/mongoose#659

PUBLISHED_FROM=8a2e029715e5e7f9a2c75eea9b55270c51b273ef
---
 mongoose.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mongoose.h b/mongoose.h
index 1460d5cb1..2843f7eec 100644
--- a/mongoose.h
+++ b/mongoose.h
@@ -187,6 +187,9 @@
 #endif
 #define random() rand()
 typedef int socklen_t;
+#if _MSC_VER >= 1700
+#include <stdint.h>
+#else
 typedef signed char int8_t;
 typedef unsigned char uint8_t;
 typedef int int32_t;
@@ -195,6 +198,7 @@ typedef short int16_t;
 typedef unsigned short uint16_t;
 typedef __int64 int64_t;
 typedef unsigned __int64 uint64_t;
+#endif
 typedef SOCKET sock_t;
 typedef uint32_t in_addr_t;
 #ifndef UINT16_MAX
-- 
GitLab