Explorar el Código

Fix build on MACOS

Samuel Thibault hace 12 años
padre
commit
7d1fea65cd
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      examples/stencil/life_opencl.c

+ 5 - 1
examples/stencil/life_opencl.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2011  Université de Bordeaux 1
+ * Copyright (C) 2010-2011, 2013  Université de Bordeaux 1
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -19,7 +19,11 @@
 /* #define _externC extern "C" */
 
 #include <stencil.h>
+#ifdef __APPLE__
+#include <OpenCL/cl.h>
+#else
 #include <CL/cl.h>
+#endif
 #include <starpu.h>
 
 #define str(x) #x