mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
Fix Windows compilation
PUBLISHED_FROM=04bcd98025263f32d337730cf179bdfc35b683f1
This commit is contained in:
1 parent
8cb2833fa7
commit
6746933a3d
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user