Fixed bug 1540: SDL 2.0 won't link on Visual Studio 2012 RC for x64
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Jul 2012 08:51:16 -0400
changeset 63553ef4d0e923cb
parent 6354 17840f487124
child 6356 5d4f55bdd0e1
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
     1.1 --- a/src/stdlib/SDL_stdlib.c	Mon Jul 09 18:08:06 2012 -0300
     1.2 +++ b/src/stdlib/SDL_stdlib.c	Wed Jul 11 08:51:16 2012 -0400
     1.3 @@ -34,8 +34,8 @@
     1.4  __declspec(selectany) int _fltused = 1;
     1.5  #endif
     1.6  
     1.7 -/* The optimizer on Visual Studio 2010 generates memcpy() calls */
     1.8 -#if _MSC_VER == 1600 && defined(_WIN64) && !defined(_DEBUG)
     1.9 +/* The optimizer on Visual Studio 2010/2012 generates memcpy() calls */
    1.10 +#if _MSC_VER >= 1600 && defined(_WIN64) && !defined(_DEBUG)
    1.11  #include <intrin.h>
    1.12  
    1.13  #pragma function(memcpy)