aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-02 14:15:01 +0000
committerlloyd <[email protected]>2011-12-02 14:15:01 +0000
commitef9a9e9022f5aba23fd4c0f4db0c07d02bf2ba38 (patch)
tree4f1edea7056eedcf4fcc139d6961ad9dc5d7cea3 /src/utils
parent173a01fc66a9b7d76903e5134fc15d1bb3cb276c (diff)
GCC doesn't like casting a function pointer to void* without an
explicit cast.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/dyn_load/dyn_load.cpp3
1 files changed, 2 insertions, 1 deletions
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<void*>(::GetProcAddress((HMODULE)lib,
+ symbol.c_str()));
#endif
if(!addr)