aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
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>