[quake3-commits] r1665 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Oct 13 11:58:23 EDT 2009


Author: tma
Date: 2009-10-13 11:58:23 -0400 (Tue, 13 Oct 2009)
New Revision: 1665

Modified:
   trunk/code/qcommon/common.c
Log:
* Fix MinGW build (it doesn't have _putenv_s)

Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c	2009-10-13 15:39:39 UTC (rev 1664)
+++ trunk/code/qcommon/common.c	2009-10-13 15:58:23 UTC (rev 1665)
@@ -2364,7 +2364,7 @@
 		
 #ifdef _WIN32
 		// windows already removes env variable if value is an empty string
-		_putenv_s(arg1, arg2);
+		_putenv(va("%s=%s", arg1, arg2));
 #else
 		if(!*arg2)
 			unsetenv(arg1);



More information about the quake3-commits mailing list