summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Win32/Alarm.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Alarm.inc b/llvm/lib/System/Win32/Alarm.inc
index 64a2107a8e7..dca9e08171f 100644
--- a/llvm/lib/System/Win32/Alarm.inc
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud