[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20412] trunk/blender/source/creator/ creator.c: tiny fix for irix: use putenv instead of setenv

Stefan Gartner stefang at aon.at
Tue May 26 01:20:38 CEST 2009


Revision: 20412
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20412
Author:   sgefant
Date:     2009-05-26 01:20:38 +0200 (Tue, 26 May 2009)

Log Message:
-----------
tiny fix for irix: use putenv instead of setenv

Modified Paths:
--------------
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2009-05-25 21:29:50 UTC (rev 20411)
+++ trunk/blender/source/creator/creator.c	2009-05-25 23:20:38 UTC (rev 20412)
@@ -545,8 +545,12 @@
 		_putenv_s("SDL_VIDEODRIVER", "dummy");
 #endif
 #else
+#ifdef __sgi
+		putenv("SDL_VIDEODRIVER=dummy");
+#else
 		setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */
 #endif
+#endif
 #ifdef __linux__
 		/* On linux the default SDL driver dma often would not play
 		 * use alsa if none is set */





More information about the Bf-blender-cvs mailing list