explicitly set env var internally.

This commit is contained in:
Concedo
2026-05-03 13:18:50 +08:00
parent 25fab4113e
commit 2fb97d9c2c
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -402,4 +402,13 @@ extern "C"
{
return gpttype_clear_state_kv(true);
}
void set_environment_variable(const char * identifier, const char * value)
{
#ifdef _WIN32
_putenv_s(identifier, value);
#else
setenv(identifier, value, 1);
#endif
}
}