From 4a2d030adfa836f6ada1830c9057170d053bcc64 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Sep 2013 23:48:55 +0000 Subject: [PATCH] Fix problem with COMDLG_FILTERSPEC declaration with MinGW-w64 4.8. Forward declaring as a struct a symbol previously defined as a typedef results in an error when using MinGW-w64 4.8.1, so forward declare the struct itself instead. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dirdlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/dirdlg.cpp b/src/msw/dirdlg.cpp index 620d74b8ea..cec2c85b7a 100644 --- a/src/msw/dirdlg.cpp +++ b/src/msw/dirdlg.cpp @@ -105,11 +105,11 @@ struct IModalWindow : public IUnknown #define FOS_FORCEFILESYSTEM 0x40 #endif -struct COMDLG_FILTERSPEC; +struct _COMDLG_FILTERSPEC; struct IFileDialog : public IModalWindow { - virtual HRESULT wxSTDCALL SetFileTypes(UINT, const COMDLG_FILTERSPEC*) = 0; + virtual HRESULT wxSTDCALL SetFileTypes(UINT, const _COMDLG_FILTERSPEC*) = 0; virtual HRESULT wxSTDCALL SetFileTypeIndex(UINT) = 0; virtual HRESULT wxSTDCALL GetFileTypeIndex(UINT*) = 0; virtual HRESULT wxSTDCALL Advise(IFileDialogEvents*, DWORD*) = 0; -- 2.45.2