From a4c9751265670d152211081e64f99f6d9a5a65c1 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Fri, 24 Dec 2004 16:26:47 +0000 Subject: [PATCH] Get VC++ building again git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19140 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/DynamicLibrary.cpp | 5 +++-- win32/Configure/Configure.vcproj | 2 +- win32/System/System.vcproj | 8 ++------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp index fc3d41316ad..0c3caac0f10 100644 --- a/lib/System/DynamicLibrary.cpp +++ b/lib/System/DynamicLibrary.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/System/DynamicLibrary.h" +#include "llvm/Config/config.h" // It is not possible to use ltdl.c on VC++ builds as the terms of its LGPL // license and special exception would cause all of LLVM to be placed under @@ -19,7 +20,7 @@ // used, and obviously libtool is not used with Visual Studio. An entirely // separate implementation is provided in win32/DynamicLibrary.cpp. -#ifdef _WIN32 +#ifdef LLVM_ON_WIN32 #include "win32/DynamicLibrary.cpp" @@ -148,4 +149,4 @@ void *DynamicLibrary::GetAddressOfSymbol(const char *symbolName) { return lt_dlsym((lt_dlhandle) handle, symbolName); } -#endif // _WIN32 \ No newline at end of file +#endif // LLVM_ON_WIN32 diff --git a/win32/Configure/Configure.vcproj b/win32/Configure/Configure.vcproj index 087d1986e39..08192c298f4 100644 --- a/win32/Configure/Configure.vcproj +++ b/win32/Configure/Configure.vcproj @@ -73,7 +73,7 @@ Name="Configure|Win32"> diff --git a/win32/System/System.vcproj b/win32/System/System.vcproj index 10472ed35b7..99d5508ba2e 100644 --- a/win32/System/System.vcproj +++ b/win32/System/System.vcproj @@ -44,10 +44,8 @@ Name="VCPostBuildEventTool"/>