From 43a0f3959e00ad8ab455d1e32a54a45c39a7ee8a Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 13 Nov 2013 15:35:13 +0000 Subject: [PATCH] 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 --- include/llvm-c/Support.h | 1 - lib/Support/DynamicLibrary.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/llvm-c/Support.h b/include/llvm-c/Support.h index 705e5f292b1..7f03ede604a 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 e149dc49fa1..a825c687bdc 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 #include -- 2.11.0