mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-14 01:51:34 +05:00
spns #33658 - fix compilation issue on Windows
This commit is contained in:
parent
956c2d17b6
commit
f161bd3388
@ -666,7 +666,11 @@ namespace SMESHUtils_MGLicenseKeyGen // API implementation
|
||||
{
|
||||
int ok;
|
||||
std::string key = GetKey(error);
|
||||
#ifndef WIN32
|
||||
ok = setenv(SPATIAL_LICENSE, key.c_str(), 0); // 0 means do not overwrite
|
||||
#else
|
||||
ok = Kernel_Utils::setenv(SPATIAL_LICENSE, key.c_str(), 0 );
|
||||
#endif
|
||||
MESSAGE("Set SPATIAL_LICENSE");
|
||||
return (ok==0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user