diff --git a/src/osx/carbon/dialog.cpp b/src/osx/carbon/dialog.cpp index 84dbc61448..9924b54b06 100644 --- a/src/osx/carbon/dialog.cpp +++ b/src/osx/carbon/dialog.cpp @@ -50,7 +50,9 @@ void wxDialog::DoShowModal() } BeginAppModalStateForWindow(windowRef) ; +#if wxUSE_CONSOLE_EVENTLOOP wxEventLoopGuarantor ensureHasLoop; +#endif wxEventLoopBase * const loop = wxEventLoop::GetActive(); while ( IsModal() ) loop->Dispatch();