From: Thomas Haller Date: Fri, 25 Aug 2023 11:36:31 +0000 (+0200) Subject: include: don't define _GNU_SOURCE in public header X-Git-Tag: v1.0.9~181 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1702252b03d5a25287bb53a519b94284b09f7cdc;p=thirdparty%2Fnftables.git include: don't define _GNU_SOURCE in public header _GNU_SOURCE is supposed to be defined as first thing, before including any libc headers. Defining it in the public header of nftables is wrong, because it would only (somewhat) work if the user includes the nftables header as first thing too. But that is not what users commonly would do, in particular with autotools projects, where users would include first. It's also unnecessary. Nothing in "nftables/libnftables.h" itself requires _GNU_SOURCE. Drop it. Signed-off-by: Thomas Haller Signed-off-by: Pablo Neira Ayuso --- diff --git a/include/nftables/libnftables.h b/include/nftables/libnftables.h index cc059692..c1d48d76 100644 --- a/include/nftables/libnftables.h +++ b/include/nftables/libnftables.h @@ -9,7 +9,6 @@ #ifndef LIB_NFTABLES_H #define LIB_NFTABLES_H -#define _GNU_SOURCE #include #include #include