git: dca59708a0f2 - stable/15 - libc: Remove incorrectly defined __STDC_VERSION_STDBOOL_H__

From: Faraz Vahedi <kfv_at_FreeBSD.org>
Date: Tue, 20 Oct 2026 08:12:09 UTC
The branch stable/15 has been updated by kfv:

URL: https://cgit.FreeBSD.org/src/commit/?id=dca59708a0f2a61a97dbe842db19c5c04d28f20b

commit dca59708a0f2a61a97dbe842db19c5c04d28f20b
Author:     Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-08-24 13:18:55 +0000
Commit:     Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-20 08:09:34 +0000

    libc: Remove incorrectly defined __STDC_VERSION_STDBOOL_H__
    
    C23 does not define __STDC_VERSION_STDBOOL_H__ for <stdbool.h>.
    Feature test macros of this form only apply to headers where the
    standard explicitly mandates one.
    
    Reviewed by:    fuz
    Approved by:    fuz (mentor)
    MFC after:      1 month
    Differential Revision:  https://reviews.freebsd.org/D59136
    
    (cherry picked from commit 2712d1380fcd8dd61d043b2242f20767e8f2f347)
---
 include/stdbool.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/stdbool.h b/include/stdbool.h
index 968967a4cfa6..e563f8fe57dd 100644
--- a/include/stdbool.h
+++ b/include/stdbool.h
@@ -26,9 +26,6 @@
  * SUCH DAMAGE.
  */
 
-#ifndef __STDC_VERSION_STDBOOL_H__
-#define __STDC_VERSION_STDBOOL_H__ 202311L
-
 #ifndef __bool_true_false_are_defined
 #define	__bool_true_false_are_defined	1
 
@@ -41,4 +38,3 @@
 
 #endif /* (__STDC_VERSION__ < 202311L) && !defined(__cplusplus) */
 #endif /* __bool_true_false_are_defined */
-#endif /* __STDC_VERSION_STDBOOL_H__ */