Let's assume that if VS2005 and VS2010 do it, VS2008 probably does, too.

This commit is contained in:
Ryan C. Gordon 2015-06-07 20:00:20 -04:00
parent 753f95c5dd
commit d98cfe1435
1 changed files with 2 additions and 3 deletions

View File

@ -278,9 +278,8 @@ int SDL_tolower(int x) { return ((x) >= 'A') && ((x) <= 'Z') ? ('a'+((x)-'A')) :
__declspec(selectany) int _fltused = 1; __declspec(selectany) int _fltused = 1;
#endif #endif
/* The optimizer on Visual Studio 2010/2012 generates memcpy() calls */ /* The optimizer on Visual Studio 2005 and later generates memcpy() calls */
/* Visual Studio 2005 does it too, and it also generates memset() calls */ #if (_MSC_VER >= 1400) && defined(_WIN64) && !defined(_DEBUG)
#if (_MSC_VER == 1400 || _MSC_VER >= 1600) && defined(_WIN64) && !defined(_DEBUG)
#include <intrin.h> #include <intrin.h>
#pragma function(memcpy) #pragma function(memcpy)