From 9430fe7092fef1a7bb83e0846ff3aa8c7a50a2df Mon Sep 17 00:00:00 2001 From: Julien Lerouge Date: Thu, 12 Feb 2009 07:39:10 +0000 Subject: [PATCH] Fix MingW build, patch by Kenneth Boyd! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64366 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Win32/Alarm.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/System/Win32/Alarm.inc b/lib/System/Win32/Alarm.inc index 64a2107a8e7..dca9e08171f 100644 --- a/lib/System/Win32/Alarm.inc +++ b/lib/System/Win32/Alarm.inc @@ -35,6 +35,9 @@ int sys::AlarmStatus() { return 0; } -void Sleep(unsigned n) { +// Don't pull in all of the Windows headers. +extern "C" _stdcall void Sleep(unsigned long); + +void sys::Sleep(unsigned n) { Sleep(n*1000); } -- 2.34.1