Kaydet (Commit) 469f8f49 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Work around compilation errors with MinGW and --enable-debug

üst a466ed04
...@@ -26,13 +26,7 @@ ...@@ -26,13 +26,7 @@
* *
************************************************************************/ ************************************************************************/
#ifdef __MINGW32__
extern "C" {
#endif
#include "system.h" #include "system.h"
#ifdef __MINGW32__
}
#endif
#include <tlhelp32.h> #include <tlhelp32.h>
#include "file_url.h" #include "file_url.h"
......
...@@ -64,10 +64,14 @@ ...@@ -64,10 +64,14 @@
// at the same time without patching // at the same time without patching
// windows.h // windows.h
#include <windows.h> #include <windows.h>
#ifdef __MINGW32__
#include <winsock2.h> #include <winsock2.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #ifdef __cplusplus
}
#endif
#include <shlobj.h> #include <shlobj.h>
#ifndef NO_DEBUG_CRT #ifndef NO_DEBUG_CRT
#include <crtdbg.h> #include <crtdbg.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