aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde2017-03-18 23:49:09 +0100
committerRémi Verschelde2017-03-18 23:49:09 +0100
commit2664549916e377bbe82185a2cc38025b906aed3b (patch)
treed61898ea989e501497450c1fbda189db1a9bd0d7 /drivers
parent1b0e2b0c39f5fe36adaee8aa1a2eee39534850c0 (diff)
downloadgodot-2664549916e377bbe82185a2cc38025b906aed3b.tar.gz
godot-2664549916e377bbe82185a2cc38025b906aed3b.tar.zst
godot-2664549916e377bbe82185a2cc38025b906aed3b.zip
Diffstat (limited to 'drivers')
-rw-r--r--drivers/unix/ip_unix.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/unix/ip_unix.cpp b/drivers/unix/ip_unix.cpp
index df2b024b4..37aba7bbf 100644
--- a/drivers/unix/ip_unix.cpp
+++ b/drivers/unix/ip_unix.cpp
@@ -33,10 +33,11 @@
#include <string.h>
#ifdef WINDOWS_ENABLED
- #include <ws2tcpip.h>
+ #include <stdio.h>
#include <winsock2.h>
+ // Needs to be included after winsock2.h
#include <windows.h>
- #include <stdio.h>
+ #include <ws2tcpip.h>
#ifndef WINRT_ENABLED
#if defined(__MINGW32__ ) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 4)
// MinGW-w64 on Ubuntu 12.04 (our Travis build env) has bugs in this code where