Remove all #define _GNU_SOURCE in source files

This is unnecessary since we are using AC_USE_SYSTEM_EXTENSIONS in
configure.ac, which makes the compiler always run with -D_GNU_SOURCE=1
when building for GNU/Linux.

Also, the  #define _GNU_SOURCE  in src/util.c, and in
src/inject_errors.c (--enable-inject-errors), were not guarded by a
#ifndef _GNU_SOURCE  so they were just triggering redefinition warnings.
This commit is contained in:
Emanuele Torre authored and GitHub committed 2023-07-24 15:44:29 +02:00
1 parent cf3c11bde8
commit 8a4f246876
4 files changed
-13

No files matched your search

-3
View File
@@ -1,6 +1,3 @@
#ifndef _GNU_SOURCE
#define _GNU_SOURCE // for strdup
#endif
#include <assert.h>
#include <math.h>
#include <string.h>