Skip to content

Commit

Permalink
Partial fix for bug 3092 - Statically link sdl2 with /MT for msvc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Oct 18, 2016
1 parent 0eb5c97 commit 8109b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib/SDL_stdlib.c
Expand Up @@ -279,7 +279,7 @@ __declspec(selectany) int _fltused = 1;
#endif

/* 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>

#pragma function(memcpy)
Expand Down

0 comments on commit 8109b13

Please sign in to comment.