From 3e6807d7019e72131db24a03c9ab298fb1c18c89 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 14 Nov 2011 12:51:49 +0000 Subject: [PATCH] Don't redefine symbols already defined in latest MinGW headers. Closes #13645. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/missing.h | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index 8018403dda..b6ab671844 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -518,13 +518,6 @@ typedef struct //Various defines that will be needed by mingw and possibly VC++6 //Used by the webview library -#ifdef __MINGW32__ -typedef enum CommandStateChangeConstants { - CSC_UPDATECOMMANDS = (int) 0xFFFFFFFF, - CSC_NAVIGATEFORWARD = 0x1, - CSC_NAVIGATEBACK = 0x2 -} CommandStateChangeConstants; -#endif #ifndef DISPID_COMMANDSTATECHANGE #define DISPID_COMMANDSTATECHANGE 105 @@ -654,15 +647,32 @@ typedef enum CommandStateChangeConstants { #define INET_E_CODE_INSTALL_SUPPRESSED 0x800C0400L #endif -//We need to check if we are using MinGW which doesn't inlcude the urlmon -//defintions as opposed to MinGW-64 which does +//We need to check if we are using MinGW or mingw-w64 as their +//definitions are different #ifdef __MINGW32__ #include <_mingw.h> #endif +#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) +typedef enum CommandStateChangeConstants { + CSC_UPDATECOMMANDS = (int) 0xFFFFFFFF, + CSC_NAVIGATEFORWARD = 0x1, + CSC_NAVIGATEBACK = 0x2 +} CommandStateChangeConstants; +#endif + //Definitions from w64 mingw-runtime package, in the public domain //Used by webview + +//The GUIDs are currently not defined in either mingw or mingw-w64 + +#ifdef __MINGW32__ +DEFINE_GUID(IID_IInternetProtocolRoot,0x79eac9e3,0xbaf9,0x11ce,0x8c,0x82,0,0xaa,0,0x4b,0xa9,0xb); +DEFINE_GUID(IID_IInternetProtocol,0x79eac9e4,0xbaf9,0x11ce,0x8c,0x82,0,0xaa,0,0x4b,0xa9,0xb); +#endif + + #if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) #define REFRESH_NORMAL 0 @@ -670,10 +680,8 @@ typedef enum CommandStateChangeConstants { EXTERN_C const IID CLSID_FileProtocol; -DEFINE_GUID(IID_IInternetProtocolRoot,0x79eac9e3,0xbaf9,0x11ce,0x8c,0x82,0,0xaa,0,0x4b,0xa9,0xb); -DEFINE_GUID(IID_IInternetProtocol,0x79eac9e4,0xbaf9,0x11ce,0x8c,0x82,0,0xaa,0,0x4b,0xa9,0xb); -typedef enum __MIDL_IBindStatusCallback_0006 +typedef enum __MIDL_IBindStatusCallback_0006 { BSCF_FIRSTDATANOTIFICATION = 0x1, BSCF_INTERMEDIATEDATANOTIFICATION = 0x2, -- 2.45.2