From: Robin Dunn Date: Thu, 6 May 2004 21:40:49 +0000 (+0000) Subject: Don't #include the extra files unless we need them X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/944b1f5e17a812c33fac433a5fabba088c4c4e79 Don't #include the extra files unless we need them git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index b953bf3f3a..8947c56632 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3906,6 +3906,10 @@ wxGrid::~wxGrid() // be removed as well as the #else cases below. #define _USE_VISATTR 0 +#if _USE_VISATTR +#include "wx/listbox.h" +#endif + void wxGrid::Create() { m_created = FALSE; // set to TRUE by CreateGrid diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index f7af67c6b4..4ef33b5262 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -5250,7 +5250,9 @@ bool wxGenericListCtrl::SetFont( const wxFont &font ) +#if _USE_VISATTR #include "wx/listbox.h" +#endif //static wxVisualAttributes diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index c7cfd6b854..82f3061c0f 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -3446,7 +3446,9 @@ void wxGenericTreeCtrl::OnGetToolTip( wxTreeEvent &event ) // be removed, as well as the #else case below. #define _USE_VISATTR 0 +#if _USE_VISATTR #include "wx/listbox.h" +#endif //static wxVisualAttributes