summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/DynamicLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/DynamicLibrary.cpp')
-rw-r--r--cpp/src/Ice/DynamicLibrary.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/Ice/DynamicLibrary.cpp b/cpp/src/Ice/DynamicLibrary.cpp
index e2e6d793c13..d64037fb4ec 100644
--- a/cpp/src/Ice/DynamicLibrary.cpp
+++ b/cpp/src/Ice/DynamicLibrary.cpp
@@ -161,7 +161,12 @@ IceInternal::DynamicLibrary::getSymbol(const string& name)
{
assert(_hnd != 0);
#ifdef _WIN32
+# ifdef __BCPLUSPLUS__
+ string newName = "_" + name;
+ return GetProcAddress(_hnd, newName.c_str());
+# else
return GetProcAddress(_hnd, name.c_str());
+# endif
#else
symbol_type result = dlsym(_hnd, name.c_str());
if(result == 0)