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