From 7f709941e4d191c3db4c460725d6f361077385b4 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 11 Jul 2012 08:51:16 -0400 Subject: [PATCH] Fixed bug 1540: SDL 2.0 won't link on Visual Studio 2012 RC for x64 Thanks to Marek Pokorny for tracking this down and providing a fix. --- src/stdlib/SDL_stdlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c index c4059f637..56eb5da4f 100755 --- a/src/stdlib/SDL_stdlib.c +++ b/src/stdlib/SDL_stdlib.c @@ -34,8 +34,8 @@ __declspec(selectany) int _fltused = 1; #endif -/* The optimizer on Visual Studio 2010 generates memcpy() calls */ -#if _MSC_VER == 1600 && defined(_WIN64) && !defined(_DEBUG) +/* The optimizer on Visual Studio 2010/2012 generates memcpy() calls */ +#if _MSC_VER >= 1600 && defined(_WIN64) && !defined(_DEBUG) #include #pragma function(memcpy)