diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-11-13 15:35:13 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-11-13 15:35:13 +0000 |
commit | 43a0f3959e00ad8ab455d1e32a54a45c39a7ee8a (patch) | |
tree | 6869f6eabe359baa8d901317f1b4ad27db33392e | |
parent | 0ab53c711295f0469c86db088dc895238da801aa (diff) | |
download | llvm-43a0f3959e00ad8ab455d1e32a54a45c39a7ee8a.tar.gz llvm-43a0f3959e00ad8ab455d1e32a54a45c39a7ee8a.tar.bz2 llvm-43a0f3959e00ad8ab455d1e32a54a45c39a7ee8a.tar.xz |
Make sure LLVMLoadLibraryPermanently gets an extern "C" symbol.
Otherwise it's impossible to use it. Also don't include C++ headers in
a C header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194581 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm-c/Support.h | 1 | ||||
-rw-r--r-- | lib/Support/DynamicLibrary.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm-c/Support.h b/include/llvm-c/Support.h index 705e5f292b..7f03ede604 100644 --- a/include/llvm-c/Support.h +++ b/include/llvm-c/Support.h @@ -15,7 +15,6 @@ #define LLVM_C_SUPPORT_H #include "llvm-c/Core.h" -#include "llvm/Support/DynamicLibrary.h" #ifdef __cplusplus extern "C" { diff --git a/lib/Support/DynamicLibrary.cpp b/lib/Support/DynamicLibrary.cpp index e149dc49fa..a825c687bd 100644 --- a/lib/Support/DynamicLibrary.cpp +++ b/lib/Support/DynamicLibrary.cpp @@ -19,7 +19,7 @@ #include "llvm/ADT/StringMap.h" #include "llvm/Config/config.h" #include "llvm/Support/Mutex.h" -#include "llvm-c/Core.h" +#include "llvm-c/Support.h" #include <cstdio> #include <cstring> |