summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-07 14:09:49 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-07 14:09:49 -0400
commit0dd30263c0f87813a0a09c7fbfe8a6e59e9cd22d (patch)
tree4fde96c6dfff221d1dd27732702faa2327681c2b
parentb0467ae794fdd10092423f022fda59dfaa1ec311 (diff)
downloadvecmathlib-0dd30263c0f87813a0a09c7fbfe8a6e59e9cd22d.zip
vecmathlib-0dd30263c0f87813a0a09c7fbfe8a6e59e9cd22d.tar.gz
Handle clang's way of handling Altivec intrinsics
-rw-r--r--vec_altivec_float4.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/vec_altivec_float4.h b/vec_altivec_float4.h
index 8f9d74e..8e2cd8e 100644
--- a/vec_altivec_float4.h
+++ b/vec_altivec_float4.h
@@ -11,9 +11,15 @@
// Altivec intrinsics
#include <altivec.h>
-#undef vector
-#undef pixel
-#undef bool
+#ifdef __clang__
+# define __vector vector
+# define __pixel pixel
+# define __bool bool
+#else
+# undef vector
+# undef pixel
+# undef bool
+#endif
OpenPOWER on IntegriCloud