From: Vadim Zeitlin Date: Wed, 16 Sep 2009 23:19:01 +0000 (+0000) Subject: Ribbon compilation fixes for OS X. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/91d33c61a5af8ff5b1dbac696184eecce40476cc Ribbon compilation fixes for OS X. Forward declare wxWindow and wxDC classes in wx/ribbon/art.h to avoid errors in (PCH-less?) buildbot builds. Also include header containing declarations of private Mac functions in implementation file (closes #11203). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/ribbon/art.h b/include/wx/ribbon/art.h index f0cc1596e7..d52796b115 100644 --- a/include/wx/ribbon/art.h +++ b/include/wx/ribbon/art.h @@ -19,6 +19,9 @@ #include #include +class WXDLLIMPEXP_FWD_CORE wxDC; +class WXDLLIMPEXP_FWD_CORE wxWindow; + enum wxRibbonArtSetting { wxRIBBON_ART_TAB_SEPARATION_SIZE, diff --git a/src/ribbon/art_aui.cpp b/src/ribbon/art_aui.cpp index bd97d9f211..c21ac1cadb 100644 --- a/src/ribbon/art_aui.cpp +++ b/src/ribbon/art_aui.cpp @@ -30,6 +30,8 @@ #ifdef __WXMSW__ #include "wx/msw/private.h" +#elif defined(__WXMAC__) +#include "wx/osx/private.h" #endif wxRibbonAUIArtProvider::wxRibbonAUIArtProvider()