summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-11-25 06:33:56 -0300
committerEuAndreh <eu@euandre.org>2023-11-25 06:33:56 -0300
commit5c0a535fb747c4bb3d3747731e4b739518a198ed (patch)
tree5e8f6b88790d6b3b4de409922ebdfa7246a184a5 /src
parentMakefile: Erase $(JSLIBDIR) together with $(SRCDIR) (diff)
downloadpapod-5c0a535fb747c4bb3d3747731e4b739518a198ed.tar.gz
papod-5c0a535fb747c4bb3d3747731e4b739518a198ed.tar.xz
src/config.h.in: Add provenance links and explanation for _XOPEN_SOURCE and _POSIX_C_SOURCE
Diffstat (limited to 'src')
-rw-r--r--src/config.h.in21
1 files changed, 20 insertions, 1 deletions
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@"