#include <ctype.h>
#ifndef WIN32
#include <termios.h>
+#else
+// MinGW defines struct timespec in pthread.h
+#include <pthread.h>
#endif
#include <unistd.h>
#include <sys/time.h>
return ch;
return n;
}
+#else
+ struct timespec tm = { 0, 40000 };
+ nanosleep( &tm, NULL );
#endif
return -1;
}