Explorar o código

Use `_Static_assert' only with GCC 4.6+.

Ludovic Courtès %!s(int64=14) %!d(string=hai) anos
pai
achega
1f69355ba2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	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.  */
 /* Make sure the following assertions hold, since StarPU relies on it.  */