aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2002-09-24 01:47:27 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2002-09-24 01:47:27 +0000
commit1878ede07212ff18029384dcc14a68b7adb74b3c (patch)
tree2d34e36762e2e4c8cf3f6a0c1c5abcdae3719201 /winsup
parent7aaee7b64603555f1806401f98887eac8c27c92b (diff)
downloadnewlib-1878ede07212ff18029384dcc14a68b7adb74b3c.zip
newlib-1878ede07212ff18029384dcc14a68b7adb74b3c.tar.gz
newlib-1878ede07212ff18029384dcc14a68b7adb74b3c.tar.bz2
* include/ws2tcpip.h: Throw error if winsock.h, not winsock2.h
has been included first.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/w32api/ChangeLog7
-rw-r--r--winsup/w32api/include/ws2tcpip.h8
2 files changed, 11 insertions, 4 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 04ff2fc..8e514dd 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,4 +1,9 @@
-2002-09-24 Rene Moeller Fonseca <fonseca@users.sourceforge.net>
+2002-09-24 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/ws2tcpip.h: Throw error if winsock.h, not winsock2.h
+ has been included first.
+
+2002-09-24 René Møller Fonseca <fonseca@users.sourceforge.net>
* include/winbase.h (FindFirstFileEx): Fixed ANSI mode.
* include/wingdi.h (PFD_SWAP_LAYER_BUFFERS):Added define.
diff --git a/winsup/w32api/include/ws2tcpip.h b/winsup/w32api/include/ws2tcpip.h
index 1b64dc9..97680f0 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 */