From: Vadim Zeitlin Date: Wed, 19 Oct 2011 21:53:10 +0000 (+0000) Subject: Fix PCH-less compilation of wx/richtooltip.h too. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c9b7d15bbb90681caaafa439c81b034f40320714 Fix PCH-less compilation of wx/richtooltip.h too. We need to include the full wxColour declaration instead of just forward declaring it as we use its ctor for a default value of a parameter. Also include wx/defs.h to ensure that wxUSE_RICHTOOLTIP is defined before testing it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/richtooltip.h b/include/wx/richtooltip.h index a076a6fcd1..7c72ed6528 100644 --- a/include/wx/richtooltip.h +++ b/include/wx/richtooltip.h @@ -11,9 +11,12 @@ #ifndef _WX_RICHTOOLTIP_H_ #define _WX_RICHTOOLTIP_H_ +#include "wx/defs.h" + #if wxUSE_RICHTOOLTIP -class WXDLLIMPEXP_FWD_CORE wxColour; +#include "wx/colour.h" + class WXDLLIMPEXP_FWD_CORE wxFont; class WXDLLIMPEXP_FWD_CORE wxIcon; class WXDLLIMPEXP_FWD_CORE wxWindow;