Przeglądaj źródła

correctly define _GNU_SOURCE

Nathalie Furmento 7 lat temu
rodzic
commit
741d1e0516

+ 1 - 1
src/common/fxt.h

@@ -21,7 +21,7 @@
 
 
 #ifndef _GNU_SOURCE
-#define _GNU_SOURCE  /* ou _BSD_SOURCE ou _SVID_SOURCE */
+#define _GNU_SOURCE  1 /* ou _BSD_SOURCE ou _SVID_SOURCE */
 #endif
 
 #include <string.h>

+ 1 - 1
src/core/perfmodel/perfmodel_bus.c

@@ -18,7 +18,7 @@
 
 #ifdef STARPU_USE_CUDA
 #ifndef _GNU_SOURCE
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
 #endif
 #include <sched.h>
 #endif

+ 1 - 1
src/drivers/gordon/driver_gordon.c

@@ -17,7 +17,7 @@
  */
 
 #ifndef _GNU_SOURCE
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
 #endif
 #include <sched.h>
 #include <semaphore.h>

+ 2 - 2
src/drivers/gordon/driver_gordon.h

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010  Université de Bordeaux
- * Copyright (C) 2010, 2013  CNRS
+ * Copyright (C) 2010, 2013, 2017  CNRS
  *
  * 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,7 @@
 #define __DRIVER_GORDON_H__
 
 #ifndef _GNU_SOURCE
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
 #endif
 #include <sched.h>
 

+ 1 - 1
src/drivers/opencl/driver_opencl.h

@@ -19,7 +19,7 @@
 #define __DRIVER_OPENCL_H__
 
 #ifndef _GNU_SOURCE
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
 #endif
 
 #ifdef STARPU_USE_OPENCL

+ 2 - 2
tests/experiments/bandwidth_cuda/cuda_bandwidth.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2014  Université de Bordeaux
- * Copyright (C) 2010, 2011  CNRS
+ * Copyright (C) 2010, 2011, 2017  CNRS
  *
  * 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
@@ -17,7 +17,7 @@
 
 
 #ifndef _GNU_SOURCE
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
 #endif
 #include <sched.h>
 #include <cuda.h>

+ 1 - 1
tests/model-checking/prio_list.c

@@ -20,7 +20,7 @@
 #ifndef NOCONFIG
 #include <config.h>
 #else
-#define _GNU_SOURCE
+#define _GNU_SOURCE 1
 // Assuming recent simgrid
 #define STARPU_HAVE_SIMGRID_MSG_H
 #define STARPU_HAVE_XBT_SYNCHRO_H

+ 3 - 1
tests/model-checking/starpu_barrier.c

@@ -32,7 +32,9 @@
 #ifndef NOCONFIG
 #include <config.h>
 #else
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
 // Assuming recent simgrid
 #define STARPU_HAVE_SIMGRID_MSG_H
 #define STARPU_HAVE_XBT_SYNCHRO_H