aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2023-06-12 19:53:57 +0200
committerGitHub <noreply@github.com>2023-06-12 19:53:57 +0200
commit4e284b5e40f08e708af9ddeb9ca04d9642636dcd (patch)
treec7c88630531d073682d476e1af3cdbaddf3779f9 /tests
parent8ea0eaa0d0c4a3be05f67ef7fa1d22c2579cf7d1 (diff)
Set _DEFAULT_SOURCE and _GNU_SOURCE globally. (#2010)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/performance/gcrypt.c2
-rw-r--r--tests/unit/unit.c3
2 files changed, 0 insertions, 5 deletions
diff --git a/tests/performance/gcrypt.c b/tests/performance/gcrypt.c
index febc18f1b..e6f59060b 100644
--- a/tests/performance/gcrypt.c
+++ b/tests/performance/gcrypt.c
@@ -1,5 +1,3 @@
-#define _DEFAULT_SOURCE
-#define _GNU_SOURCE
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
diff --git a/tests/unit/unit.c b/tests/unit/unit.c
index 5212c768e..37ed1315d 100644
--- a/tests/unit/unit.c
+++ b/tests/unit/unit.c
@@ -19,9 +19,6 @@
*/
#ifdef __linux__
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <sched.h>
#endif /* linux */