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