[quake3-commits] r1660 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Oct 12 12:20:01 EDT 2009
Author: thilo
Date: 2009-10-12 12:20:01 -0400 (Mon, 12 Oct 2009)
New Revision: 1660
Modified:
trunk/code/qcommon/common.c
Log:
MinGW doesn't have setenv() either, so.....
Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c 2009-10-12 16:03:18 UTC (rev 1659)
+++ trunk/code/qcommon/common.c 2009-10-12 16:20:01 UTC (rev 1660)
@@ -2378,15 +2378,15 @@
{
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)
{
More information about the quake3-commits
mailing list