summaryrefslogtreecommitdiffstats
path: root/vecmathlib.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-11-25 14:58:05 -0500
committerErik Schnetter <schnetter@gmail.com>2013-11-25 14:58:05 -0500
commit548b6b7ae61f6fd2913fa5475ca8c3c523823e6d (patch)
tree59529d51133de835a2e2e94b08a433ed077a6af7 /vecmathlib.h
parent36f7de41c871def89b0245748d29ac2c2dae0609 (diff)
downloadvecmathlib-548b6b7ae61f6fd2913fa5475ca8c3c523823e6d.zip
vecmathlib-548b6b7ae61f6fd2913fa5475ca8c3c523823e6d.tar.gz
Only enable builtin vectors when clang is used
Diffstat (limited to 'vecmathlib.h')
-rw-r--r--vecmathlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vecmathlib.h b/vecmathlib.h
index f5dfcf7..7956f73 100644
--- a/vecmathlib.h
+++ b/vecmathlib.h
@@ -94,8 +94,10 @@ namespace std { class type_info; }
// useful as fallback)
#include "vec_pseudo.h"
+#ifdef __clang__
// Use compiler-provided vector types
-#include "vec_builtin.h"
+# include "vec_builtin.h"
+#endif
// Scalarise all vector operations; don't use libm, use only
// Vecmathlib's functions (mostly useful for testing Vecmathlib)
OpenPOWER on IntegriCloud