Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2009-04-30 00:09:08 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2009-04-30 00:09:08 +0400
commit39caa9898c84c59aecc7443dce5ac94f1abd3ade (patch)
treeca94b24d8cacbbfe1d85c5c713c7e4261cf5811b /source/creator
parent604f3e08d35464a86a818b9248085e2dbdb4d561 (diff)
* fix linking problem for mingw with setenv/_putenv_s, here we use putenv("key=val");
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index a1531fd7180..2b542b13c97 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -538,8 +538,12 @@ int main(int argc, char **argv)
BLI_where_is_temp( btempdir, 1 ); /* call after loading the .B.blend so we can read U.tempdir */
#ifndef DISABLE_SDL
-#if (defined(WIN32) || defined(WIN64)) && !defined(FREE_WINDOWS)
+#if (defined(WIN32) || defined(WIN64))
+#if defined(FREE_WINDOWS)
+ putenv("SDL_VIDEODRIVER=dummy");
+#else
_putenv_s("SDL_VIDEODRIVER", "dummy");
+#endif
#else
setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */
#endif