git: 735452dad4bf - stable/14 - sys/cdefs.h: Add comments to make #if/#else/#endif triple more obvious
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Dec 2025 17:00:15 UTC
The branch stable/14 has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=735452dad4bf6275533e1d26fd098fbdbffd4d42
commit 735452dad4bf6275533e1d26fd098fbdbffd4d42
Author: Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2024-11-20 20:09:28 +0000
Commit: Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-12-15 16:58:44 +0000
sys/cdefs.h: Add comments to make #if/#else/#endif triple more obvious
This block has a lot of nesting, not helped by two adjacent nested
blocks involving _POSIX_C_SOURCE, with only the inner one commented,
looking like it's the end of the outer one. Comment the outer one as
well so it's not quite so hard to figure out.
MFC after: 1 week
(cherry picked from commit 7a3af393d8ac2dfe72d24fe401344b60c4f87866)
---
sys/sys/cdefs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 209acc842839..4af38941762c 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -761,7 +761,7 @@
#undef __ISO_C_VISIBLE
#define __ISO_C_VISIBLE 2011
#endif
-#else
+#else /* _POSIX_C_SOURCE */
/*-
* Deal with _ANSI_SOURCE:
* If it is defined, and no other compilation environment is explicitly
@@ -799,7 +799,7 @@
#define __ISO_C_VISIBLE 2023
#define __EXT1_VISIBLE 1
#endif
-#endif
+#endif /* _POSIX_C_SOURCE */
/* User override __EXT1_VISIBLE */
#if defined(__STDC_WANT_LIB_EXT1__)