|
@@ -24,6 +24,9 @@
|
|
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
|
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
|
#define _CRT_SECURE_NO_WARNINGS /* Disable deprecation warning in VS2005 */
|
|
#define _CRT_SECURE_NO_WARNINGS /* Disable deprecation warning in VS2005 */
|
|
#endif
|
|
#endif
|
|
|
|
+#ifndef _WIN32_WINNT /* defined for tdm-gcc so we can use getnameinfo */
|
|
|
|
+#define _WIN32_WINNT 0x0501
|
|
|
|
+#endif
|
|
#else
|
|
#else
|
|
#if defined(__GNUC__) && !defined(_GNU_SOURCE)
|
|
#if defined(__GNUC__) && !defined(_GNU_SOURCE)
|
|
#define _GNU_SOURCE /* for setgroups() */
|
|
#define _GNU_SOURCE /* for setgroups() */
|
|
@@ -86,10 +89,6 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#if defined(_WIN32)
|
|
|
|
-#include <ws2tcpip.h>
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#if defined(__SYMBIAN32__)
|
|
#if defined(__SYMBIAN32__)
|
|
#define NO_SSL /* SSL is not supported */
|
|
#define NO_SSL /* SSL is not supported */
|
|
#define NO_CGI /* CGI is not supported */
|
|
#define NO_CGI /* CGI is not supported */
|
|
@@ -180,6 +179,7 @@ mg_static_assert(MAX_WORKER_THREADS >= 1,
|
|
#if defined(_WIN32) && !defined(__SYMBIAN32__) /* Windows specific */
|
|
#if defined(_WIN32) && !defined(__SYMBIAN32__) /* Windows specific */
|
|
#include <windows.h>
|
|
#include <windows.h>
|
|
#include <winsock2.h> /* DTL add for SO_EXCLUSIVE */
|
|
#include <winsock2.h> /* DTL add for SO_EXCLUSIVE */
|
|
|
|
+#include <ws2tcpip.h>
|
|
|
|
|
|
typedef const char *SOCK_OPT_TYPE;
|
|
typedef const char *SOCK_OPT_TYPE;
|
|
|
|
|