* include/ws2tcpip.h: Throw error if winsock.h, not winsock2.h

has been included first.
This commit is contained in:
Danny Smith
2002-09-24 01:47:27 +00:00
parent 7aaee7b646
commit 1878ede072
2 changed files with 11 additions and 4 deletions

View File

@ -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 */