summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/DLLMain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/DLLMain.cpp')
-rwxr-xr-xcpp/src/Ice/DLLMain.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Ice/DLLMain.cpp b/cpp/src/Ice/DLLMain.cpp
index 0ffe13db653..2079402164e 100755
--- a/cpp/src/Ice/DLLMain.cpp
+++ b/cpp/src/Ice/DLLMain.cpp
@@ -15,12 +15,16 @@ extern "C"
{
BOOL WINAPI
-ice_DLL_Main(HINSTANCE hDLL, DWORD reason, LPVOID reserved)
+#ifdef __BCPLUSPLUS__
+DllMain(HINSTANCE hDLL, DWORD reason, LPVOID reserved)
{
+#else
+ice_DLL_Main(HINSTANCE hDLL, DWORD reason, LPVOID reserved)
if(!_CRT_INIT(hDLL, reason, reserved))
{
return FALSE;
}
+#endif
if(reason == DLL_PROCESS_ATTACH)
{