From ef37625372546efb32cdb37823b9927cf16b0840 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Wed, 17 Jun 2009 15:28:54 +0100 Subject: Restore macro definition of sleep(), needed by Xming Removed in error by commit 1defe6b37c23941fe2a67ad4fa66e8ab5f37f9b3 Signed-off-by: Jon TURNEY --- Xwindows.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Xwindows.h') 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 -- cgit v1.2.3