#include "wx/timer.h"
-#include <ctype.h>
-
#if !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__SALFORDC__)
#include <direct.h>
#endif
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#ifndef __WATCOMC__
#if !(defined(_MSC_VER) && (_MSC_VER > 800))
#include <errno.h>
#endif
#endif
-#include <stdarg.h>
//// BEGIN for console support: VC++ only
#ifdef __VISUALC__
#include "wx/ioswrap.h"
-#if wxUSE_IOSTREAMH
-// N.B. BC++ doesn't have istream.h, ostream.h
-# include <io.h>
-# include <fstream.h>
-#else
-# include <fstream>
-#endif
+#include "wx/ioswrap.h"
/* Need to undef new if including crtdbg.h */
# ifdef new
#if wxUSE_GUI
+#if wxUSE_TIMER
+
// Sleep for nSecs seconds. Attempt a Windows implementation using timers.
static bool gs_inTimer = FALSE;
-class wxSleepTimer: public wxTimer
+class wxSleepTimer : public wxTimer
{
public:
virtual void Notify()
{
#ifdef __WIN32__
::Sleep(milliseconds);
-#else
+#else // !Win32
if (gs_inTimer)
return;
}
delete wxTheSleepTimer;
wxTheSleepTimer = NULL;
-#endif
+#endif // Win32/!Win32
}
void wxSleep(int nSecs)
// wxYield();
}
+#endif // wxUSE_TIMER
+
#elif defined(__WIN32__) // wxUSE_GUI
void wxUsleep(unsigned long milliseconds)