mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gnetworking.h.in: move "#undef interface"
The win32 headers do: #define interface struct which is just evil and breaks other code that assumes it can use "interface" as a variable name. gnetworking.h was supposed to be doing "#undef interface" after including the win headers, but it did it too soon, resulting in it getting redefined by a later include. Fix this. https://bugzilla.gnome.org/show_bug.cgi?id=738551
This commit is contained in:
parent
982d0e11d7
commit
7103484017
@ -27,12 +27,12 @@
|
||||
#define _WIN32_WINNT 0x0501
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#undef interface
|
||||
#include <ws2tcpip.h>
|
||||
#include <windns.h>
|
||||
#include <mswsock.h>
|
||||
@WSPIAPI_INCLUDE@
|
||||
#include <iphlpapi.h>
|
||||
#undef interface
|
||||
|
||||
#else /* !G_OS_WIN32 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user