* fix linking problem for mingw with setenv/_putenv_s, here we use putenv("key=val");

This commit is contained in:
Nathan Letwory 2009-04-29 20:09:08 +00:00
parent 604f3e08d3
commit 39caa9898c

@ -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