mirror of https://github.com/encounter/SDL.git
Partial fix for bug 3092 - Statically link sdl2 with /MT for msvc
Mike Linford I'm also having trouble statically linking SDL2 on Visual Studio 2015 with /MT. My symptom is that memcpy is being defined twice.
This commit is contained in:
parent
0eb5c976b9
commit
8109b1378a
|
@ -279,7 +279,7 @@ __declspec(selectany) int _fltused = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The optimizer on Visual Studio 2005 and later generates memcpy() calls */
|
/* The optimizer on Visual Studio 2005 and later generates memcpy() calls */
|
||||||
#if (_MSC_VER >= 1400) && defined(_WIN64) && !defined(_DEBUG)
|
#if (_MSC_VER >= 1400) && defined(_WIN64) && !defined(_DEBUG) && !(_MSC_VER >= 1900 && defined(_MT))
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
|
|
||||||
#pragma function(memcpy)
|
#pragma function(memcpy)
|
||||||
|
|
Loading…
Reference in New Issue