aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/System/Win32/Alarm.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/System/Win32/Alarm.inc b/lib/System/Win32/Alarm.inc
index 64a2107a8e..dca9e08171 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);
}