diff --git a/src/osx/carbon/frame.cpp b/src/osx/carbon/frame.cpp index ce1b4ec0b7..57669c7074 100644 --- a/src/osx/carbon/frame.cpp +++ b/src/osx/carbon/frame.cpp @@ -60,6 +60,7 @@ bool wxFrame::Create(wxWindow *parent, if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) ) return false; +#if wxUSE_TOOLBAR if ( wxTheApp->OSXIsFullScreenApp() ) { if ((parent != nullptr) && (HasFlag(wxCAPTION) || HasFlag(wxCLOSE_BOX))) @@ -80,6 +81,7 @@ bool wxFrame::Create(wxWindow *parent, tb->Realize(); } } +#endif return true; }