MinGW doesn't have setenv() either, so.....

This commit is contained in:
Thilo Schulz 2009-10-12 16:20:01 +00:00
parent d86dd71327
commit e48b56559d

View file

@ -2378,7 +2378,7 @@ void Com_Setenv_f(void)
{ {
char *arg2 = Cmd_ArgsFrom(2); char *arg2 = Cmd_ArgsFrom(2);
#ifdef _MSC_VER #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_s(arg1, arg2);
#else #else