Browse Source

Use `_Static_assert' only with GCC 4.6+.

Ludovic Courtès 13 years ago
parent
commit
1f69355ba2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/starpu_perfmodel.h

+ 1 - 1
include/starpu_perfmodel.h

@@ -55,7 +55,7 @@ enum starpu_perf_archtype
 	STARPU_GORDON_DEFAULT = STARPU_OPENCL_DEFAULT + STARPU_MAXOPENCLDEVS
 };
 
-#if __STDC_VERSION__ > 199901L || defined __GNUC__
+#if __STDC_VERSION__ > 199901L || STARPU_GNUC_PREREQ(4, 6)
 
 /* Make sure the following assertions hold, since StarPU relies on it.  */