mirror of
https://github.com/UberGames/ioef.git
synced 2024-12-01 00:21:19 +00:00
* Fix MinGW build (it doesn't have _putenv_s)
This commit is contained in:
parent
290f51e353
commit
639fdb4ed3
1 changed files with 1 additions and 1 deletions
|
@ -2364,7 +2364,7 @@ void Com_Setenv_f(void)
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// windows already removes env variable if value is an empty string
|
// windows already removes env variable if value is an empty string
|
||||||
_putenv_s(arg1, arg2);
|
_putenv(va("%s=%s", arg1, arg2));
|
||||||
#else
|
#else
|
||||||
if(!*arg2)
|
if(!*arg2)
|
||||||
unsetenv(arg1);
|
unsetenv(arg1);
|
||||||
|
|
Loading…
Reference in a new issue