// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
// ============================================================================
// declarations
// ============================================================================
// headers
// ----------------------------------------------------------------------------
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
+#include "wx/toplevel.h"
-#ifdef __BORLANDC__
-#pragma hdrstop
-#endif
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+#endif // WX_PRECOMP
-#include "wx/defs.h"
-#include "wx/toplevel.h"
-#include "wx/app.h"
#include "wx/mgl/private.h"
// ----------------------------------------------------------------------------
if (wxTheApp->GetTopWindow() == this)
wxTheApp->SetTopWindow(NULL);
- if ((wxTopLevelWindows.Number() == 0) &&
- (wxTheApp->GetExitOnFrameDelete()))
+ if (wxTopLevelWindows.IsEmpty() &&
+ wxTheApp->GetExitOnFrameDelete())
{
wxTheApp->ExitMainLoop();
}