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