From ef9a9e9022f5aba23fd4c0f4db0c07d02bf2ba38 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 2 Dec 2011 14:15:01 +0000 Subject: GCC doesn't like casting a function pointer to void* without an explicit cast. --- src/utils/dyn_load/dyn_load.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/dyn_load/dyn_load.cpp b/src/utils/dyn_load/dyn_load.cpp index 4a8cb16fa..7f42218f9 100644 --- a/src/utils/dyn_load/dyn_load.cpp +++ b/src/utils/dyn_load/dyn_load.cpp @@ -65,7 +65,8 @@ void* Dynamically_Loaded_Library::resolve_symbol(const std::string& symbol) #if defined(BOTAN_TARGET_OS_HAS_DLOPEN) addr = ::dlsym(lib, symbol.c_str()); #elif defined(BOTAN_TARGET_OS_HAS_LOADLIBRARY) - addr = ::GetProcAddress((HMODULE)lib, symbol.c_str()); + addr = reinterpret_cast(::GetProcAddress((HMODULE)lib, + symbol.c_str())); #endif if(!addr) -- cgit v1.2.3