From 5c0a535fb747c4bb3d3747731e4b739518a198ed Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 25 Nov 2023 06:33:56 -0300 Subject: src/config.h.in: Add provenance links and explanation for _XOPEN_SOURCE and _POSIX_C_SOURCE --- src/config.h.in | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/config.h.in b/src/config.h.in index 4867dc0..dc379e5 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -1,9 +1,28 @@ #ifndef CONFIG_H #define CONFIG_H -#define _XOPEN_SOURCE 700 + + +/* + From + https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap02.html#tag_02_02_01: + + > For the C programming language, shall define _POSIX_C_SOURCE to be 200809L + > before any header is included +*/ #define _POSIX_C_SOURCE 200809L + +/* + From + https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap02.html#tag_02_02_04: + + > For the C programming language, shall define _XOPEN_SOURCE to be 700 before + > any header is included +*/ +#define _XOPEN_SOURCE 700 + + #define VERSION_MACRO_STRING "@VERSION@" #define DATE_MACRO_STRING "@DATE@" #define NAME_MACRO_STRING "@NAME@" -- cgit v1.2.3