summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2009-06-17 15:28:54 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-06-17 15:46:05 +0100
commitef37625372546efb32cdb37823b9927cf16b0840 (patch)
treede543f4c2280ff6fc5b89178b0deadc9ba595531
parente9df99b12ef9fefdbc1c05ff51bddffe723051e9 (diff)
Restore macro definition of sleep(), needed by Xming
Removed in error by commit 1defe6b37c23941fe2a67ad4fa66e8ab5f37f9b3 Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--Xwindows.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xwindows.h b/Xwindows.h
index 149580e..6318155 100644
--- a/Xwindows.h
+++ b/Xwindows.h
@@ -75,6 +75,10 @@ The Open Group.
# define RT_CURSOR ((RESTYPE)5)
#endif
+#ifndef __CYGWIN__
+#define sleep(x) Sleep((x) * 1000)
+#endif
+
#if defined(WIN32) && (!defined(PATH_MAX) || PATH_MAX < 1024)
# undef PATH_MAX
# define PATH_MAX 1024