diff --git a/mongoose.h b/mongoose.h index 304fa5d3a1ca7a1a50c5fb7286f80103cc46a4ef..6e55356fc75e20f12b83b0b7f92bd3f06404f245 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