From 67bd2212ae94cc83c9922dec64eedf87675bfacd Mon Sep 17 00:00:00 2001 From: env Date: Mon, 29 Aug 2005 05:54:00 +0000 Subject: [PATCH] ENV: Windows porting --- src/Container/Container_i.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 319616a10..3357c8fdc 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -278,7 +278,11 @@ Engines_Container_i::load_component_Library(const char* componentName) // --- try dlopen C++ component +#ifndef WNT string impl_name = string ("lib") + aCompName + string("Engine.so"); +#else + string impl_name = aCompName + string("Engine.dll"); +#endif SCRUTE(impl_name); _numInstanceMutex.lock(); // lock to be alone @@ -409,7 +413,11 @@ Engines_Container_i::create_component_instance(const char*genericRegisterName, //--- try C++ +#ifndef WNT string impl_name = string ("lib") + genericRegisterName +string("Engine.so"); +#else + string impl_name = genericRegisterName +string("Engine.dll"); +#endif void* handle = _library_map[impl_name]; if ( !handle ) { -- 2.39.2