#endif
#include "unistd.h"
+#ifdef __SUN__
+extern "C"
+{
+void usleep(unsigned long usec);
+};
+#endif
+
#include "glib.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "wx/gtk/win_gtk.h"
+#include <unistd.h> // usleep() on solaris
+
//-----------------------------------------------------------------------------
// global data
//-----------------------------------------------------------------------------
delete wxTheApp;
wxTheApp = (wxApp*) NULL;
+ wxSystemSettings::Done();
+
+ delete[] wxBuffer;
+
+ wxClassInfo::CleanUpClasses();
+
/* check for memory leaks */
#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
if (wxDebugContext::CountObjectsLeft() > 0)
wxLog *oldLog = wxLog::SetActiveTarget( (wxLog*) NULL );
if (oldLog) delete oldLog;
-
- wxSystemSettings::Done();
-
- wxClassInfo::CleanUpClasses();
-
- delete[] wxBuffer;
}
wxLog *wxApp::CreateLogTarget()