#pragma hdrstop
#endif
-#if wxUSE_TOOLBAR_SIMPLE
+#if wxUSE_TOOLBAR && wxUSE_TOOLBAR_SIMPLE
#ifndef WX_PRECOMP
#include "wx/settings.h"
#include "wx/dcmemory.h"
#endif
+#include "wx/toolbar.h"
#include "wx/tbarsmpl.h"
// ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxToolBarBase)
-#if !defined(wxUSE_TOOLBAR_NATIVE) && !defined(__WXUNIVERSAL__)
- #include "wx/toolbar.h"
-
+#if !wxUSE_TOOLBAR_NATIVE && !defined(__WXUNIVERSAL__)
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarSimple)
#endif