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
This commit is contained in:
Vadim Zeitlin
2011-10-19 21:53:10 +00:00
parent dc73d7f5d4
commit c9b7d15bbb

View File

@@ -11,9 +11,12 @@
#ifndef _WX_RICHTOOLTIP_H_ #ifndef _WX_RICHTOOLTIP_H_
#define _WX_RICHTOOLTIP_H_ #define _WX_RICHTOOLTIP_H_
#include "wx/defs.h"
#if wxUSE_RICHTOOLTIP #if wxUSE_RICHTOOLTIP
class WXDLLIMPEXP_FWD_CORE wxColour; #include "wx/colour.h"
class WXDLLIMPEXP_FWD_CORE wxFont; class WXDLLIMPEXP_FWD_CORE wxFont;
class WXDLLIMPEXP_FWD_CORE wxIcon; class WXDLLIMPEXP_FWD_CORE wxIcon;
class WXDLLIMPEXP_FWD_CORE wxWindow; class WXDLLIMPEXP_FWD_CORE wxWindow;