Don't bother checking canRead() before calling getMagicNumber();
[oota-llvm.git] / lib / System / Win32 / Alarm.inc
index e4ac5128a3d752bf3bb3c9a36ee47547daf69511..e0d00a0142bfac4a4bce0d13109db85b4eae801b 100644 (file)
@@ -1,9 +1,9 @@
-//===-- Alarm.inc - Implement Win32 Alarm Support -------------------------===//
+//===-- Alarm.inc - Implement Win32 Alarm Support ---------------*- C++ -*-===//
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the Reid Spencer and is distributed under the
-// University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
 //
@@ -14,7 +14,7 @@
 #include <cassert>
 using namespace llvm;
 
-/// NestedSOI - Sanity check.  Alarms cannot be nested or run in parallel.  
+/// NestedSOI - Sanity check.  Alarms cannot be nested or run in parallel.
 /// This ensures that they never do.
 static bool NestedSOI = false;
 
@@ -34,3 +34,10 @@ int sys::AlarmStatus() {
   // FIXME: Implement for Win32
   return 0;
 }
+
+// Don't pull in all of the Windows headers.
+extern "C"  void __stdcall Sleep(unsigned long);
+
+void sys::Sleep(unsigned n) {
+  ::Sleep(n*1000);
+}