Browse Source

don't even include xmmintrin.h when SSE is not enabled

Samuel Thibault 14 years ago
parent
commit
2af42b0125
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/basic_examples/vector_scal_cpu.c

+ 2 - 0
examples/basic_examples/vector_scal_cpu.c

@@ -19,7 +19,9 @@
  */
 
 #include <starpu.h>
+#ifdef __SSE__
 #include <xmmintrin.h>
+#endif
 
 /* This kernel takes a buffer and scales it by a constant factor */
 void scal_cpu_func(void *buffers[], void *cl_arg)