summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/DynamicLibrary.cpp
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2004-12-24 16:26:47 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2004-12-24 16:26:47 +0000
commit683b1a5e3c1ca96603dfccc21f6fd3a98a285658 (patch)
treeef288d0113aed01774554ea88b052b8b23de9f0c /llvm/lib/System/DynamicLibrary.cpp
parentd06d026715045aa3f126a1e9338e9ea8c0d7e101 (diff)
downloadbcm5719-llvm-683b1a5e3c1ca96603dfccc21f6fd3a98a285658.tar.gz
bcm5719-llvm-683b1a5e3c1ca96603dfccc21f6fd3a98a285658.zip
Get VC++ building again
llvm-svn: 19140
Diffstat (limited to 'llvm/lib/System/DynamicLibrary.cpp')
-rw-r--r--llvm/lib/System/DynamicLibrary.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp
index fc3d41316ad..0c3caac0f10 100644
--- a/llvm/lib/System/DynamicLibrary.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud