aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
Diffstat (limited to 'code')
-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)
{