mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
Finalize windows porting
This commit is contained in:
parent
43ee452778
commit
053c21a38a
@ -2510,7 +2510,8 @@ void GEOM_Gen_i::LoadPlugin(const std::string& theLibName)
|
|||||||
|
|
||||||
// check, if corresponding operations are already created
|
// check, if corresponding operations are already created
|
||||||
if (myOpCreatorMap.find(theLibName) == myOpCreatorMap.end()) {
|
if (myOpCreatorMap.find(theLibName) == myOpCreatorMap.end()) {
|
||||||
#ifdef UNICODE
|
#if WIN32
|
||||||
|
#if UNICODE
|
||||||
//RNV: this is workaround for providing compilation,
|
//RNV: this is workaround for providing compilation,
|
||||||
// path should be processed as unicode string.
|
// path should be processed as unicode string.
|
||||||
size_t length = strlen(aPlatformLibName.c_str()) + sizeof(char);
|
size_t length = strlen(aPlatformLibName.c_str()) + sizeof(char);
|
||||||
@ -2518,10 +2519,9 @@ void GEOM_Gen_i::LoadPlugin(const std::string& theLibName)
|
|||||||
memset(aPath, '\0', length);
|
memset(aPath, '\0', length);
|
||||||
mbstowcs(aPath, aPlatformLibName.c_str(), length);
|
mbstowcs(aPath, aPlatformLibName.c_str(), length);
|
||||||
#else
|
#else
|
||||||
const char* aPath = xmlPath.c_str();
|
const char* aPath = aPlatformLibName.c_str();
|
||||||
#endif
|
#endif
|
||||||
// load plugin library
|
// load plugin library
|
||||||
#if WIN32
|
|
||||||
LibHandle libHandle = LoadLib(aPath);
|
LibHandle libHandle = LoadLib(aPath);
|
||||||
#else
|
#else
|
||||||
LibHandle libHandle = LoadLib(aPlatformLibName.c_str());
|
LibHandle libHandle = LoadLib(aPlatformLibName.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user