From 505d2408a1555cddba6134e352f20076b8ac7725 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 13 Nov 2013 15:35:13 +0000 Subject: 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 --- llvm/include/llvm-c/Support.h | 1 - llvm/lib/Support/DynamicLibrary.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm') diff --git a/llvm/include/llvm-c/Support.h b/llvm/include/llvm-c/Support.h index 705e5f292b1..7f03ede604a 100644 --- a/llvm/include/llvm-c/Support.h +++ b/llvm/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/llvm/lib/Support/DynamicLibrary.cpp b/llvm/lib/Support/DynamicLibrary.cpp index e149dc49fa1..a825c687bdc 100644 --- a/llvm/lib/Support/DynamicLibrary.cpp +++ b/llvm/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 -- cgit v1.2.3