There are problems with including intrin.h in C linkage in C++ compilation,
and further conflicts between intrin.h and winnt.h on Visual Studio 2005.
This commit is contained in:
Sam Lantinga 2011-01-21 23:46:51 -08:00
parent 14a0cb6fbc
commit c4bf458e47
2 changed files with 12 additions and 2 deletions

View file

@ -24,6 +24,10 @@
#include "SDL_atomic.h"
#include "SDL_timer.h"
/* Don't do the check for Visual Studio 2005, it's safe here */
#if defined(_MSC_VER)
#include <intrin.h>
#endif
/* This function is where all the magic happens... */
SDL_bool