Skip to content

Commit 154251d

Browse files
miss-islingtonserhiy-storchakaclaude
authored
[3.14] gh-154144: Fix false positive from the stdbool.h guard in _testcapimodule.c (GH-154145) (GH-154158)
(cherry picked from commit 8d11eb0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent dfd4214 commit 154251d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix building the :mod:`!_testcapi` module on NetBSD.

Modules/_testcapimodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#include "frameobject.h" // PyFrame_New()
1616
#include "marshal.h" // PyMarshal_WriteLongToFile()
1717

18+
#ifdef bool
19+
# error "The public headers should not include <stdbool.h>, see gh-90904"
20+
#endif
21+
1822
#include <float.h> // FLT_MAX
1923
#include <signal.h>
2024
#include <stddef.h> // offsetof()
@@ -26,10 +30,6 @@
2630
# include <sys/sysctl.h> // sysctlbyname()
2731
#endif
2832

29-
#ifdef bool
30-
# error "The public headers should not include <stdbool.h>, see gh-48924"
31-
#endif
32-
3333
#include "_testcapi/util.h"
3434

3535

0 commit comments

Comments
 (0)