From 66e6cd27a32a84dceef1098f457ebefd76a3d129 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 23 Sep 2014 01:09:46 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218290 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/DynamicLibrary.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/Windows/DynamicLibrary.inc b/lib/Support/Windows/DynamicLibrary.inc index 95d7ba1699f..241f95d55a9 100644 --- a/lib/Support/Windows/DynamicLibrary.inc +++ b/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); -- 2.34.1