debugger: fix bad uses of metacall.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@312 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2002-01-19 16:10:53 +00:00
parent d413b1906c
commit 71f276e5db
2 changed files with 10 additions and 9 deletions

View File

@@ -27,6 +27,9 @@ static char SccsId[] = "%W% %G%";
*
*/
#if _MSC_VER || defined(__MINGW32__)
#define _WIN32_WINNT 0x0400
#endif
#include "Yap.h"
#include "yapio.h"
#include "eval.h"
@@ -68,8 +71,7 @@ static char SccsId[] = "%W% %G%";
#if HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef _WIN32
#define _WIN32_WINNT 0x0400
#if _MSC_VER || defined(__MINGW32__)
#include <windows.h>
/* required for DLL compatibility */
#if HAVE_DIRECT_H
@@ -1976,8 +1978,7 @@ p_alarm(void)
liDueTime.LowPart = (DWORD) ( due_time & 0xFFFFFFFF );
liDueTime.HighPart = (LONG) ( due_time >> 32 );
if (SetWaitableTimer(htimer, &liDueTime,0,HandleTimer,NULL,0) == 0) {
Error(SYSTEM_ERROR, TermNil,
"alarm not available in this configuration");
WinError("trying to use alarm");
return(FALSE);
}
}