mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 02:50:25 +08:00
* include/ws2tcpip.h: Throw error if winsock.h, not winsock2.h
has been included first.
This commit is contained in:
parent
7aaee7b646
commit
1878ede072
@ -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.
|
||||
|
@ -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 */
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user