]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't redefine symbols already defined in latest MinGW headers.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Nov 2011 12:51:49 +0000 (12:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Nov 2011 12:51:49 +0000 (12:51 +0000)
Closes #13645.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/missing.h

index 8018403dda319160f3286f251fa19be028c94d53..b6ab671844457e4705bf4e63fff28dd4e927b4b2 100644 (file)
@@ -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,