From 6960fb2f6e7d338d16ad883a6feea0da448c76c1 Mon Sep 17 00:00:00 2001 From: Jonathan Liu Date: Sat, 1 Sep 2012 16:13:25 +1000 Subject: [PATCH] Fix MinGW-w64 GCC 4.6.3 compilation Several IShellLibrary constants and the COMDLG_FILTERSPEC struct are already defined in newer versions of the MinGW-w64 headers. Change-Id: I614b35c835123484aeeb4e61e0bae24261584da0 Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qwindowsdialoghelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp index c586ecb..5f424f7 100644 --- a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp +++ b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp @@ -72,6 +72,8 @@ #ifdef Q_CC_MINGW /* Add missing declarations for MinGW */ +#ifndef __IShellLibrary_FWD_DEFINED__ + /* Constants obtained by running the below stream operator for * CLSID, IID on the constants in the Windows SDK libraries. */ @@ -87,8 +89,6 @@ static const IID IID_IFileDialogEvents = {0x973510db, 0x7d7f, 0x452b,{0x89, 0x static const CLSID CLSID_FileOpenDialog = {0xdc1c5a9c, 0xe88a, 0x4dde, {0xa5, 0xa1, 0x60, 0xf8, 0x2a, 0x20, 0xae, 0xf7}}; static const CLSID CLSID_FileSaveDialog = {0xc0b4e2f3, 0xba21, 0x4773,{0x8d, 0xba, 0x33, 0x5e, 0xc9, 0x46, 0xeb, 0x8b}}; -#ifndef __IShellLibrary_FWD_DEFINED__ - typedef struct _COMDLG_FILTERSPEC { LPCWSTR pszName; -- 2.7.4