diff options
author | Thomas White <taw@physics.org> | 2010-08-24 18:37:44 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:56 +0100 |
commit | af003a7bf9cc2f8b163ec4df44238d9f249d3943 (patch) | |
tree | 083942746e47e33f1008d7d1498c58a3a6b4e58d | |
parent | 1c68a9455e3ccbbb37a9e74914371f82a4ac588d (diff) |
Move -D_GNU_SOURCE to a better place
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/calibrate_detector.c | 1 | ||||
-rw-r--r-- | src/cell.c | 1 | ||||
-rw-r--r-- | src/displaywindow.c | 1 | ||||
-rw-r--r-- | src/image.c | 1 | ||||
-rw-r--r-- | src/indexamajig.c | 1 |
6 files changed, 2 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 465f5b73..038ea7f8 100644 --- a/configure.ac +++ b/configure.ac @@ -152,7 +152,7 @@ AS_IF([test "x$enable_cairo" != "xno"], CFLAGS="$CFLAGS $HDF5_CFLAGS $GTK_CFLAGS $GSL_CFLAGS $OPENCL_CFLAGS -pthread" -CFLAGS="$CFLAGS $LIBTIFF_CFLAGS" +CFLAGS="$CFLAGS $LIBTIFF_CFLAGS -D_GNU_SOURCE" LIBS="$LIBS $HDF5_LIBS -lm -lz $GSL_LIBS $GTK_LIBS $OPENCL_LIBS -pthread" LIBS="$LIBS $LIBTIFF_LIBS" diff --git a/src/calibrate_detector.c b/src/calibrate_detector.c index 0a8790f4..0759ff6b 100644 --- a/src/calibrate_detector.c +++ b/src/calibrate_detector.c @@ -14,7 +14,6 @@ #include <config.h> #endif -#define _GNU_SOURCE 1 #include <stdarg.h> #include <stdlib.h> #include <stdio.h> @@ -16,6 +16,7 @@ #include <math.h> #include <stdlib.h> #include <stdio.h> +#include <string.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_linalg.h> diff --git a/src/displaywindow.c b/src/displaywindow.c index 45ee125c..145602e0 100644 --- a/src/displaywindow.c +++ b/src/displaywindow.c @@ -14,7 +14,6 @@ #include <config.h> #endif -#define _GNU_SOURCE #include <gtk/gtk.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/image.c b/src/image.c index 5bb47d24..d4d66712 100644 --- a/src/image.c +++ b/src/image.c @@ -10,7 +10,6 @@ */ -#define _GNU_SOURCE 1 #include <stdlib.h> #include <assert.h> #include <math.h> diff --git a/src/indexamajig.c b/src/indexamajig.c index 91abc9e1..eee4c009 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -14,7 +14,6 @@ #include <config.h> #endif -#define _GNU_SOURCE 1 #include <stdarg.h> #include <stdlib.h> #include <stdio.h> |