diff --git a/modules/juce_core/native/juce_win32_ComSmartPtr.h b/modules/juce_core/native/juce_win32_ComSmartPtr.h index 2ef20862aa..ff677af572 100644 --- a/modules/juce_core/native/juce_win32_ComSmartPtr.h +++ b/modules/juce_core/native/juce_win32_ComSmartPtr.h @@ -63,7 +63,7 @@ public: HRESULT CoCreateInstance (REFCLSID classUUID, DWORD dwClsContext = CLSCTX_INPROC_SERVER) { - #ifndef __MINGW32__ + #if ! JUCE_MINGW return ::CoCreateInstance (classUUID, 0, dwClsContext, __uuidof (ComClass), (void**) resetAndGetPointerAddress()); #else jassertfalse; // need to find a mingw equivalent of __uuidof to make this possible @@ -83,7 +83,7 @@ public: template HRESULT QueryInterface (ComSmartPtr& destObject) const { - #ifndef __MINGW32__ + #if ! JUCE_MINGW return this->QueryInterface (__uuidof (OtherComClass), destObject); #else jassertfalse; // need to find a mingw equivalent of __uuidof to make this possible @@ -114,7 +114,7 @@ public: JUCE_COMRESULT QueryInterface (REFIID refId, void** result) { - #ifndef __MINGW32__ + #if ! JUCE_MINGW if (refId == __uuidof (ComClass)) { AddRef(); *result = dynamic_cast (this); return S_OK; } #endif diff --git a/modules/juce_core/native/juce_win32_SystemStats.cpp b/modules/juce_core/native/juce_win32_SystemStats.cpp index 6c6edfe7d9..cec8a2262d 100644 --- a/modules/juce_core/native/juce_win32_SystemStats.cpp +++ b/modules/juce_core/native/juce_win32_SystemStats.cpp @@ -64,9 +64,9 @@ static void juce_getCpuVendor (char* const v) { int vendor[4] = { 0 }; - #ifndef __MINGW32__ + #if ! JUCE_MINGW __try - #endif + #endif { #if JUCE_GCC unsigned int dummy = 0; @@ -82,7 +82,7 @@ static void juce_getCpuVendor (char* const v) } #endif } - #ifndef __MINGW32__ + #if ! JUCE_MINGW __except (EXCEPTION_EXECUTE_HANDLER) { *v = 0; diff --git a/modules/juce_core/network/juce_Socket.cpp b/modules/juce_core/network/juce_Socket.cpp index c96dc50717..0b0d311b7d 100644 --- a/modules/juce_core/network/juce_Socket.cpp +++ b/modules/juce_core/network/juce_Socket.cpp @@ -27,6 +27,10 @@ #include #include + #if JUCE_MINGW + #include + #endif + #if JUCE_MSVC #pragma warning (push) #pragma warning (disable : 4127 4389 4018) diff --git a/modules/juce_gui_basics/juce_gui_basics.cpp b/modules/juce_gui_basics/juce_gui_basics.cpp index 71ecfbb395..1e5b467961 100644 --- a/modules/juce_gui_basics/juce_gui_basics.cpp +++ b/modules/juce_gui_basics/juce_gui_basics.cpp @@ -84,6 +84,10 @@ #pragma comment (lib, "D2d1.lib") #endif + #if JUCE_MINGW + #include + #endif + //============================================================================== #elif JUCE_LINUX #include