summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDebao Zhang <dbzhang800@gmail.com>2012-04-04 20:26:31 -0700
committerQt by Nokia <qt-info@nokia.com>2012-04-05 20:45:02 +0200
commitbdfff4d82537ae4c69585b0102457cfc522ef070 (patch)
treefd757f5eb244aba27771ff8533be305c3c7676f2 /src
parentfddbe8beecd8cd4f783ce85076994f6cb90e9154 (diff)
Fix compilation with MinGW-W64.
These types and values and been defined propsys.h from MinGW-W64 Version2 on. Change-Id: If74b7cf07a0fce414009c86519494a782508d8fe Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/windows/qwindowsdialoghelpers.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
index 1239f3d8e2..aa366da672 100644
--- a/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
+++ b/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
@@ -116,6 +116,7 @@ typedef struct _COMDLG_FILTERSPEC
#define FOS_DEFAULTNOMINIMODE 0x20000000
#define FOS_FORCEPREVIEWPANEON 0x40000000
+#if !defined(__MINGW64_VERSION_MAJOR) || (__MINGW64_VERSION_MAJOR < 2)
typedef int GETPROPERTYSTOREFLAGS;
#define GPS_DEFAULT 0x00000000
#define GPS_HANDLERPROPERTIESONLY 0x00000001
@@ -126,6 +127,7 @@ typedef int GETPROPERTYSTOREFLAGS;
#define GPS_DELAYCREATION 0x00000020
#define GPS_BESTEFFORT 0x00000040
#define GPS_MASK_VALID 0x0000007F
+#endif
typedef int (QT_WIN_CALLBACK* BFFCALLBACK)(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
// message from browser
@@ -288,7 +290,9 @@ DECLARE_INTERFACE_(IFileOpenDialog, IFileDialog)
STDMETHOD(GetSelectedItems)(THIS_ IShellItemArray **ppsai) PURE;
};
+#if !defined(__MINGW64_VERSION_MAJOR) || (__MINGW64_VERSION_MAJOR < 2)
typedef IUnknown IPropertyStore;
+#endif
typedef IUnknown IFileOperationProgressSink;
DECLARE_INTERFACE_(IFileSaveDialog, IFileDialog)