From 209b588ef5ae91b35ddd8a2b792b2b4abe97669c Mon Sep 17 00:00:00 2001 From: thilo Date: Mon, 12 Oct 2009 16:20:01 +0000 Subject: MinGW doesn't have setenv() either, so..... git-svn-id: svn://svn.icculus.org/quake3/trunk@1660 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'code/qcommon') diff --git a/code/qcommon/common.c b/code/qcommon/common.c index aef7720..2f4e843 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -2378,15 +2378,15 @@ void Com_Setenv_f(void) { char *arg2 = Cmd_ArgsFrom(2); - #ifdef _MSC_VER +#ifdef _WIN32 // windows already removes env variable if value is an empty string _putenv_s(arg1, arg2); - #else +#else if(!*arg2) unsetenv(arg1); else setenv(arg1, arg2, 1); - #endif +#endif } else if(argc == 2) { -- cgit v1.2.3