From bbae11bd2dd368c27e073428e68d3330a39d27f4 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 23 Sep 2014 01:09:46 +0000 Subject: Windows/DynamicLibrary.inc: Remove 'extern "C"' in ELM_Callback. 'extern "C" static' is not accepted by g++-4.7. Rather to tweak, I just removed 'extern "C"', since it doesn't affect the ABI. llvm-svn: 218290 --- llvm/lib/Support/Windows/DynamicLibrary.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/Windows') diff --git a/llvm/lib/Support/Windows/DynamicLibrary.inc b/llvm/lib/Support/Windows/DynamicLibrary.inc index 95d7ba1699f..241f95d55a9 100644 --- a/llvm/lib/Support/Windows/DynamicLibrary.inc +++ b/llvm/lib/Support/Windows/DynamicLibrary.inc @@ -41,7 +41,7 @@ using namespace sys; static DenseSet *OpenedHandles; -extern "C" static BOOL CALLBACK +static BOOL CALLBACK ELM_Callback(WIN32_ELMCB_PCSTR ModuleName, ULONG_PTR ModuleBase, ULONG ModuleSize, PVOID UserContext) { OpenedHandles->insert((HMODULE)ModuleBase); -- cgit v1.2.3