Make sure LLVMLoadLibraryPermanently gets an extern "C" symbol.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 13 Nov 2013 15:35:13 +0000 (15:35 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 13 Nov 2013 15:35:13 +0000 (15:35 +0000)
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
lib/Support/DynamicLibrary.cpp

index 705e5f292b156ddde9ff8d242b401ed8c46aa3f1..7f03ede604a266021fadaa73b7599e5b47e083a9 100644 (file)
@@ -15,7 +15,6 @@
 #define LLVM_C_SUPPORT_H
 
 #include "llvm-c/Core.h"
-#include "llvm/Support/DynamicLibrary.h"
 
 #ifdef __cplusplus
 extern "C" {
index e149dc49fa1e591d4deb1d167c08aff9ce85eee4..a825c687bdcf980af6cb6b0dac69e947ee5f7eea 100644 (file)
@@ -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>