mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +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
|
||||
// windows already removes env variable if value is an empty string
|
||||
_putenv_s(arg1, arg2);
|
||||
_putenv(va("%s=%s", arg1, arg2));
|
||||
#else
|
||||
if(!*arg2)
|
||||
unsetenv(arg1);
|
||||
|
|
Loading…
Reference in a new issue