From e39b47b2c57d775341f4b3ff5102909ca110ed00 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Tue, 3 Jan 2006 09:53:21 +0000 Subject: [PATCH] OK, now Borland is under control. It just needed the windows.h header. --- pdcurses/kernel.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pdcurses/kernel.c b/pdcurses/kernel.c index e9fd0bce..afbe3842 100644 --- a/pdcurses/kernel.c +++ b/pdcurses/kernel.c @@ -21,6 +21,9 @@ #ifdef HAVE_CONFIG_H # include #endif +#if !defined(XCURSES) +# define INCLUDE_WINDOWS_H +#endif #include #ifdef HAVE_STRING_H @@ -78,7 +81,7 @@ #endif #ifdef PDCDEBUG -char *rcsid_kernel = "$Id: kernel.c,v 1.12 2006/01/03 09:28:29 wmcbrine Exp $"; +char *rcsid_kernel = "$Id: kernel.c,v 1.13 2006/01/03 09:53:21 wmcbrine Exp $"; #endif RIPPEDOFFLINE linesripped[5]; @@ -497,9 +500,11 @@ int ms; { PDC_LOG(("napms() - called: ms=%d\n",ms)); -#if (defined(TC) || defined(__WATCOMC__)) && defined(DOS) +#if defined(WIN32) + Sleep( ms ); +#elif (defined(TC) || defined(__WATCOMC__)) && defined(DOS) delay( ms ); -#elif defined(PC) || defined(WIN32) +#elif defined(PC) PDC_usleep( ms ); #elif defined(OS2) # if defined(EMX)