Implement sys::SetInterruptFunction on Unix, stub it on win32 so that the
[oota-llvm.git] / lib / System / DynamicLibrary.cpp
index e458d84927e1e8ba9ea76ae338310354b43c04fb..18894cbc87d5f578f0b3e86d0f46787eb45a3f25 100644 (file)
@@ -1,10 +1,10 @@
 //===-- DynamicLibrary.cpp - Runtime link/load libraries --------*- C++ -*-===//
-// 
+//
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by Reid Spencer and is distributed under the 
+// This file was developed by Reid Spencer and is distributed under the
 // University of Illinois Open Source License. See LICENSE.TXT for details.
-// 
+//
 //===----------------------------------------------------------------------===//
 //
 //  This header file implements the operating system DynamicLibrary concept.
@@ -22,7 +22,7 @@
 
 #ifdef LLVM_ON_WIN32
 
-#include "Win32/DynamicLibrary.cpp"
+#include "Win32/DynamicLibrary.inc"
 
 #else
 
@@ -33,7 +33,7 @@ using namespace llvm::sys;
 
 //===----------------------------------------------------------------------===//
 //=== WARNING: Implementation here must contain only TRULY operating system
-//===          independent code. 
+//===          independent code.
 //===----------------------------------------------------------------------===//
 
 static bool did_initialize_ltdl = false;
@@ -55,7 +55,7 @@ DynamicLibrary::DynamicLibrary() : handle(0) {
 
   if (a_handle == 0)
     throw std::string("Can't open program as dynamic library");
-  
+
   handle = a_handle;
   OpenedHandles.push_back(a_handle);
 }