Просмотр исходного кода

Use `_Static_assert' only with GCC 4.6+.

Ludovic Courtès лет назад: 14
Родитель
Сommit
1f69355ba2
1 измененных файлов с 1 добавлено и 1 удалено
  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.  */