From 3bed3b6cb76d098e7defa49d177a70f190951387 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. llvm-svn: 194581 --- 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