From 1a4c1a393b33813d36892a62a979a5ca525d9084 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Fri, 29 Jun 2012 15:37:11 -0500 Subject: [PATCH] MT support. --- C/sysbits.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C/sysbits.c b/C/sysbits.c index e35cf19d7..a5f54a447 100755 --- a/C/sysbits.c +++ b/C/sysbits.c @@ -471,7 +471,7 @@ sub_utime(FILETIME t1, FILETIME t2) #endif UInt -Yap_cputime ( USES_REGS1 ) +Yap_cputime ( void ) { HANDLE hProcess = GetCurrentProcess(); FILETIME CreationTime, ExitTime, KernelTime, UserTime; @@ -1775,6 +1775,7 @@ ReceiveSignal (int s) #if (_MSC_VER || defined(__MINGW32__)) static BOOL WINAPI MSCHandleSignal(DWORD dwCtrlType) { + CACHE_REGS if (LOCAL_InterruptsDisabled) { return FALSE; }