diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-04-27 11:07:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-04-27 11:07:22 +0400 |
commit | 9c3d628082035c8b7ff49aa6e72898345a683584 (patch) | |
tree | 527c8757216438d663378c30ca0e38f4b2f28e63 /source/creator/creator.c | |
parent | 5d1d6ad4d19cf2b76abb9ed323027f194a65e2a0 (diff) |
[#18616] Scons+MinGW compiling error with gaming engine enabled.
Attempt to fix building in windows with mingw
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r-- | source/creator/creator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 74e899d2d14..a1531fd7180 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -538,10 +538,10 @@ 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 -#ifndef WIN32 - setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */ -#else +#if (defined(WIN32) || defined(WIN64)) && !defined(FREE_WINDOWS) _putenv_s("SDL_VIDEODRIVER", "dummy"); +#else + setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */ #endif #ifdef __linux__ /* On linux the default SDL driver dma often would not play |