* fix linking problem for mingw with setenv/_putenv_s, here we use putenv("key=val");
This commit is contained in:
@@ -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 */
|
BLI_where_is_temp( btempdir, 1 ); /* call after loading the .B.blend so we can read U.tempdir */
|
||||||
|
|
||||||
#ifndef DISABLE_SDL
|
#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");
|
_putenv_s("SDL_VIDEODRIVER", "dummy");
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */
|
setenv("SDL_VIDEODRIVER", "dummy", 1); /* initializing the video driver can cause crashes on some systems - Campbell */
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user