Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include/ws2tcpip.h')
-rw-r--r--winsup/w32api/include/ws2tcpip.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/winsup/w32api/include/ws2tcpip.h b/winsup/w32api/include/ws2tcpip.h
index 1b64dc9ca..97680f02c 100644
--- a/winsup/w32api/include/ws2tcpip.h
+++ b/winsup/w32api/include/ws2tcpip.h
@@ -12,6 +12,10 @@
#pragma GCC system_header
#endif
+#if (defined _WINSOCK_H && !defined _WINSOCK2_H)
+#error "ws2tcpip.h is not compatable with winsock.h. Include winsock2.h instead."
+#endif
+
#include <winsock2.h>
#ifdef __cplusplus
extern "C" {
@@ -336,7 +340,5 @@ typedef struct _OLD_INTERFACE_INFO {
#ifdef __cplusplus
}
#endif
-#endif /* _WS2TCPIP_H */
-
-
+#endif /* _WS2TCPIP_H */