From cb83c4e0de9ed5deff06ba72e2c494e18b89710d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 5 Oct 2015 00:48:02 +0200 Subject: [PATCH] Fix wxStandardPaths compilation with gcc after recent changes Forward declare struct _GUID to allow referencing it in this header without including the full or even . This fixes compilation with gcc after the changes of a0fb80808771dfb27fcb452284a2cfdc9a9bf783 Closes https://github.com/wxWidgets/wxWidgets/pull/108 --- include/wx/msw/stdpaths.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wx/msw/stdpaths.h b/include/wx/msw/stdpaths.h index 8ae99f2207..965c079226 100644 --- a/include/wx/msw/stdpaths.h +++ b/include/wx/msw/stdpaths.h @@ -11,6 +11,8 @@ #ifndef _WX_MSW_STDPATHS_H_ #define _WX_MSW_STDPATHS_H_ +struct _GUID; + // ---------------------------------------------------------------------------- // wxStandardPaths // ---------------------------------------------------------------------------- @@ -72,7 +74,7 @@ protected: // get the path corresponding to the given standard CSIDL_XXX constant static wxString DoGetDirectory(int csidl); - static wxString DoGetKnownFolder(const GUID& rfid); + static wxString DoGetKnownFolder(const _GUID& rfid); // return the directory of the application itself wxString GetAppDir() const;