From c9b7d15bbb90681caaafa439c81b034f40320714 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 19 Oct 2011 21:53:10 +0000 Subject: [PATCH] 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 --- include/wx/richtooltip.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.45.2