aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-11-15 19:32:26 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:41 +0100
commit8737092e3406f9d4b792c11b186b11f2a1548a69 (patch)
tree5caca61cfa8241bd401d1abb1c9e4cfa65a408bd /libcrystfel
parentd97f3bc0addc2448c84bb0ec0b2a7d0f4463213c (diff)
Add _GNU_SOURCE to get M_PI as well
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/detector.c1
-rw-r--r--libcrystfel/src/reflist-utils.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index cf2cfbc9..12aaa162 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -12,6 +12,7 @@
#define _ISOC99_SOURCE
+#define _GNU_SOURCE
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
diff --git a/libcrystfel/src/reflist-utils.c b/libcrystfel/src/reflist-utils.c
index 5315a782..21efc641 100644
--- a/libcrystfel/src/reflist-utils.c
+++ b/libcrystfel/src/reflist-utils.c
@@ -11,6 +11,7 @@
#define _ISOC99_SOURCE
+#define _GNU_SOURCE
#include <math.h>
#include <stdio.h>
#include <assert.h>