Fixed altivec.h include on Mac OS X

This commit is contained in:
Sam Lantinga 2011-02-22 22:17:44 -08:00
parent e4a0db291e
commit d79f7ed02d

View file

@ -42,6 +42,14 @@
#elif defined(__MINGW64_VERSION_MAJOR)
#include <intrin.h>
#else
#ifdef __ALTIVEC__
#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
#include <altivec.h>
#undef vector
#undef pixel
#undef bool
#endif
#endif
#ifdef __MMX__
#include <mmintrin.h>
#endif
@ -54,9 +62,6 @@
#ifdef __SSE2__
#include <emmintrin.h>
#endif
#ifdef HAVE_ALTIVEC_H
#include <altivec.h>
#endif
#endif
#include "begin_code.h"