summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/DLLMain.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-09-08 16:09:39 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-09-08 16:09:39 +0000
commitcf8898b046b57ceb6e13d92197258c135200fa4d (patch)
tree33cd52bf875a9082d0493f9e742ecb6a0ec0c289 /cpp/src/Ice/DLLMain.cpp
parentFixed Windows services in Makefile.mak build (diff)
downloadice-cf8898b046b57ceb6e13d92197258c135200fa4d.tar.bz2
ice-cf8898b046b57ceb6e13d92197258c135200fa4d.tar.xz
ice-cf8898b046b57ceb6e13d92197258c135200fa4d.zip
Fixed Borland service startup
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)
{