Browse Source

Windows: winsock2.h must be included before including windows.h

master
Kjetil Matheussen Filipe Coelho <falktx@falktx.com> 8 years ago
parent
commit
705424224c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      systemdeps.h

+ 4
- 0
systemdeps.h View File

@@ -60,6 +60,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(GNU_WIN32) #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(GNU_WIN32)


#ifdef __MINGW32__
# include <winsock2.h> // mingw gives warning if we include windows.h before winsock2.h
#endif

#include <windows.h> #include <windows.h>


#ifdef _MSC_VER /* Microsoft compiler */ #ifdef _MSC_VER /* Microsoft compiler */


Loading…
Cancel
Save