aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/calibrate_detector.c1
-rw-r--r--src/cell.c1
-rw-r--r--src/displaywindow.c1
-rw-r--r--src/image.c1
-rw-r--r--src/indexamajig.c1
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>
diff --git a/src/cell.c b/src/cell.c
index bb4dca99..9ae51f0a 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -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>