*/
#include <stdio.h>
+#include <Winsock2.h>
#include <windows.h>
#include <setupapi.h>
+#ifndef __MINGW64_VERSION_MAJOR
#include <ddk/cfgmgr32.h>
#include <ddk/newdev.h>
-#include <Winsock2.h>
+#else
+#include <cfgmgr32.h>
+#include <newdev.h>
+#endif
#include <time.h>
#include "platform.h"
#include "tap-windows.h"
* DHCP and such are all features we will never use in gnunet afaik.
* But for openvpn those are essential.
*/
- if ((privilege_testing) || (! tun_up (tap_handle))
+ if ((privilege_testing) || (! tun_up (tap_handle)))
goto teardown_final;
/* Initialize our overlapped IO structures*/