aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-06-11 18:50:02 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-06-11 18:50:02 +0000
commitc7d95dcb4e0b3d9ebc1a79d2c45f16af10cf88c1 (patch)
tree7468d5e5808afb882fe956c57118bab0704706e2 /lib
parentb04cb59463ae3e7d72890f044378f67540fadc43 (diff)
Following gcc, hide the hack to include the SSE2 intrinsics from
xmmintrin.h in an ifdef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Headers/xmmintrin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h
index 4938399063..5d2bcbb98c 100644
--- a/lib/Headers/xmmintrin.h
+++ b/lib/Headers/xmmintrin.h
@@ -898,7 +898,10 @@ do { \
(row3) = _mm_movelh_ps(tmp3, tmp1); \
} while (0)
+/* Ugly hack for backwards-compatibility (compatible with gcc) */
+#ifdef __SSE2__
#include <emmintrin.h>
+#endif
#endif /* __SSE__ */