1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

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
This commit is contained in:
Jessica Clarke 2024-11-20 20:09:28 +00:00
parent 780f289297
commit 7a3af393d8

View File

@ -596,7 +596,7 @@
#undef __ISO_C_VISIBLE #undef __ISO_C_VISIBLE
#define __ISO_C_VISIBLE 2011 #define __ISO_C_VISIBLE 2011
#endif #endif
#else #else /* _POSIX_C_SOURCE */
/*- /*-
* Deal with _ANSI_SOURCE: * Deal with _ANSI_SOURCE:
* If it is defined, and no other compilation environment is explicitly * If it is defined, and no other compilation environment is explicitly
@ -640,7 +640,7 @@
#define __ISO_C_VISIBLE 2023 #define __ISO_C_VISIBLE 2023
#define __EXT1_VISIBLE 1 #define __EXT1_VISIBLE 1
#endif #endif
#endif #endif /* _POSIX_C_SOURCE */
/* User override __EXT1_VISIBLE */ /* User override __EXT1_VISIBLE */
#if defined(__STDC_WANT_LIB_EXT1__) #if defined(__STDC_WANT_LIB_EXT1__)