From 9f1bf9401340bd1e3025ca1bd8111e7b6d2bf657 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 26 Jul 2011 11:31:21 +0000 Subject: [PATCH] Compilation fix: include wx/event.h from wx/containr.h. We now need wxEVT_XXX constants declarations in this file (at least when not wxHAS_NATIVE_TAB_TRAVERSAL) so include wx/event.h to fix PCH-less build of wxOSX. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/containr.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/wx/containr.h b/include/wx/containr.h index 3e7b5e38c1..29dba36d6b 100644 --- a/include/wx/containr.h +++ b/include/wx/containr.h @@ -14,6 +14,11 @@ #include "wx/defs.h" +#ifndef wxHAS_NATIVE_TAB_TRAVERSAL + // We need wxEVT_XXX declarations in this case. + #include "wx/event.h" +#endif + class WXDLLIMPEXP_FWD_CORE wxWindow; class WXDLLIMPEXP_FWD_CORE wxWindowBase; @@ -116,9 +121,6 @@ protected: #else // !wxHAS_NATIVE_TAB_TRAVERSAL -class WXDLLIMPEXP_FWD_CORE wxFocusEvent; -class WXDLLIMPEXP_FWD_CORE wxNavigationKeyEvent; - // ---------------------------------------------------------------------------- // wxControlContainer for TAB navigation implemented in wx itself // ---------------------------------------------------------------------------- -- 2.45.2