aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-10-12 16:20:01 +0000
committerthilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-10-12 16:20:01 +0000
commit209b588ef5ae91b35ddd8a2b792b2b4abe97669c (patch)
treee3503b077e0686bfdbf8981d5531f8d78b645510
parent0a5fd2ce603120c2de02f6882bc7e9c993e2e14e (diff)
downloadioquake3-aero-209b588ef5ae91b35ddd8a2b792b2b4abe97669c.tar.gz
ioquake3-aero-209b588ef5ae91b35ddd8a2b792b2b4abe97669c.zip
MinGW doesn't have setenv() either, so.....
git-svn-id: svn://svn.icculus.org/quake3/trunk@1660 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/qcommon/common.c6
1 files changed, 3 insertions, 3 deletions
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)
{