diff options
Diffstat (limited to '')
| -rw-r--r-- | src/util.h | 1 | ||||
| -rw-r--r-- | src/w32-util.c | 6 | 
2 files changed, 6 insertions, 1 deletions
| @@ -26,6 +26,7 @@  # ifdef HAVE_W32CE_SYSTEM  #  include "w32-ce.h"  # else +#  include "winsock2.h"  #  include "windows.h"  # endif  #endif diff --git a/src/w32-util.c b/src/w32-util.c index 7feaf6b9..a90f4056 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -44,7 +44,11 @@  #include <fcntl.h>  #include <io.h> -#define _WIN32_IE 0x0400 /* Required for SHGetSpecialFolderPathA.  */ +#if __MINGW64_VERSION_MAJOR >= 2 +# define _WIN32_IE 0x0501 /* Required by mingw64 toolkit.  */ +#else +# define _WIN32_IE 0x0400 /* Required for SHGetSpecialFolderPathA.  */ +#endif  /* We need to include the windows stuff here prior to shlobj.h so that     we get the right winsock version.  This is usually done in util.h | 
