The MMX and 3DNow! instructions can't be compiled by 64-bit Visual Studio.
authorSam Lantinga <slouken@libsdl.org>
Mon, 07 Mar 2011 22:04:10 -0800
changeset 545058630b98eb63
parent 5449 1a6f882e4a55
child 5451 6535fdf7cf45
The MMX and 3DNow! instructions can't be compiled by 64-bit Visual Studio.
include/SDL_cpuinfo.h
     1.1 --- a/include/SDL_cpuinfo.h	Mon Mar 07 22:03:29 2011 -0800
     1.2 +++ b/include/SDL_cpuinfo.h	Mon Mar 07 22:04:10 2011 -0800
     1.3 @@ -35,8 +35,10 @@
     1.4  /* Visual Studio 2005 has a bug where intrin.h conflicts with winnt.h */
     1.5  #if defined(_MSC_VER) && (_MSC_VER >= 1500) && !defined(_WIN32_WCE)
     1.6  #include <intrin.h>
     1.7 +#ifndef _WIN64
     1.8  #define __MMX__
     1.9  #define __3dNOW__
    1.10 +#endif
    1.11  #define __SSE__
    1.12  #define __SSE2__
    1.13  #elif defined(__MINGW64_VERSION_MAJOR)