// This should be gui_send but this does not work.\r
// Why?\r
\r
- fprintf(stderr,"tellusererror POLYGLOT: %s",string);\r
+ printf("tellusererror POLYGLOT: %s",string);\r
\r
if (Error) { // recursive error\r
my_log("POLYGLOT *** RECURSIVE ERROR ***\n");\r
}\r
\r
\r
+void my_sleep(int msec){\r
+#ifndef _WIN32\r
+ struct timespec tm;\r
+ tm.tv_sec=msec/1000;\r
+ tm.tv_nsec=1000000*(msec%1000);\r
+ nanosleep(&tm,NULL);\r
+#else\r
+ Sleep(msec);\r
+#endif\r
+}\r