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 5450 58630b98eb63
parent 5449 1a6f882e4a55
child 5451 6535fdf7cf45
The MMX and 3DNow! instructions can't be compiled by 64-bit Visual Studio.
include/SDL_cpuinfo.h
--- a/include/SDL_cpuinfo.h	Mon Mar 07 22:03:29 2011 -0800
+++ b/include/SDL_cpuinfo.h	Mon Mar 07 22:04:10 2011 -0800
@@ -35,8 +35,10 @@
 /* Visual Studio 2005 has a bug where intrin.h conflicts with winnt.h */
 #if defined(_MSC_VER) && (_MSC_VER >= 1500) && !defined(_WIN32_WCE)
 #include <intrin.h>
+#ifndef _WIN64
 #define __MMX__
 #define __3dNOW__
+#endif
 #define __SSE__
 #define __SSE2__
 #elif defined(__MINGW64_VERSION_MAJOR)