#undef vector after including altivec.h

This commit is contained in:
Gael Guennebaud 2008-08-27 00:09:58 +00:00
parent 12c6b45ae5
commit 083ffa8c41

View File

@ -27,8 +27,11 @@
#define EIGEN_VECTORIZE
#define EIGEN_VECTORIZE_ALTIVEC
#include <altivec.h>
// We _need_ to #undef bool as it's defined in <altivec.h> for some reason.
// We _need_ to #undef all these ugly tokens defined in <altivec.h>
// => use __vector instead of vector
#undef bool
#undef vector
#undef pixel
#endif
#endif