]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
spns #33658 - fix compilation issue on Windows
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 8 Mar 2023 09:36:33 +0000 (10:36 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 8 Mar 2023 09:36:33 +0000 (10:36 +0100)
src/SMESHUtils/SMESH_MGLicenseKeyGen.cxx

index e9f05dded81554396d055205369b8717a4709df0..4d2a83cbb511de990c08e348d1fc62fa0e30ffba 100644 (file)
@@ -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);
   }