[SDL] SDL-1.2.10 Win32 Build error: mmintrin.h
Alex Volkov
avcp-sdlmail at usa.net
Thu Jun 1 09:28:17 PDT 2006
Sam Lantinga wrote:
> Is there any way to explicitly check for the processor pack?
> Maybe some #define somewhere?
Alex Volkov wrote:
> There appears to be none.
Actually, I looked *very* hard, and there does appear to be a way. It's a
hack, but the kind that should not get invalidated by future VC6 versions
(since VC6 is at almost the end of its life).
The guards should be something like this:
#elif defined(_MSC_VER) && (_MSC_VER >= 1200) && defined(_M_IX86)
/* Dirty hack -- VC6 Processor Pack installs malloc.h that
* defines _mm_malloc. Luckily, we only need this trick for VC6,
* and it looks like VC6 will not change anymore */
#include <malloc.h>
#if (_MSC_VER >= 1300) || defined(_mm_malloc)
#define MMX_ASMBLIT 1
#define MSVC_ASMBLIT 1
#endif
#endif
Ken, please test this with your VC6 and VC7 versions if you can. Thank you!
-Alex.
More information about the SDL
mailing list