commit | 9430fe7092fef1a7bb83e0846ff3aa8c7a50a2df | [log] [tgz] |
---|---|---|
author | Julien Lerouge <jlerouge@apple.com> | Thu Feb 12 07:39:10 2009 +0000 |
committer | Julien Lerouge <jlerouge@apple.com> | Thu Feb 12 07:39:10 2009 +0000 |
tree | ff27f54b7a7d73755750aac222acd0a739a30161 | |
parent | af9985c6b9d066cb70a0363fed699022d0ec196c [diff] |
Fix MingW build, patch by Kenneth Boyd! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64366 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Win32/Alarm.inc b/lib/System/Win32/Alarm.inc index 64a2107..dca9e08 100644 --- a/lib/System/Win32/Alarm.inc +++ b/lib/System/Win32/Alarm.inc
@@ -35,6 +35,9 @@ 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); }