Sfoglia il codice sorgente

Use `_Static_assert' only with GCC 4.6+.

Ludovic Courtès 14 anni fa
parent
commit
1f69355ba2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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.  */