Commit 685f792f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

win32: Work around an issue in mingw-w64 5.0.x headers

wincrypt.h needs to be included before iphlpapi.h
parent 38723d04
......@@ -31,6 +31,10 @@
#include <vector>
#include <string>
#ifdef _WIN32
#include <windows.h>
#include <wincrypt.h>
#endif
#include <upnp/upnp.h>
#include <upnp/upnptools.h>
......
......@@ -41,6 +41,7 @@
#ifdef _WIN32
# undef EAFNOSUPPORT
# define EAFNOSUPPORT WSAEAFNOSUPPORT
# include <wincrypt.h>
# include <iphlpapi.h>
#else
# include <unistd.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment