[#18616] Scons+MinGW compiling error with gaming engine enabled.
Attempt to fix building in windows with mingw
This commit is contained in:
parent
5d1d6ad4d1
commit
9c3d628082
@ -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
|
||||
|
@ -38,7 +38,7 @@
|
||||
// cool things like (IF(LOD==1,CCurvedValue,IF(LOD==2,CCurvedValue2)) etc...
|
||||
#include "IfExpr.h"
|
||||
|
||||
#if defined(WIN32) || defined(WIN64)
|
||||
#if (defined(WIN32) || defined(WIN64)) && !defined(FREE_WINDOWS)
|
||||
#define strcasecmp _stricmp
|
||||
|
||||
#ifndef strtoll
|
||||
|
Loading…
Reference in New Issue
Block a user