Skip to content

Commit 9b0e7eb

Browse files
committed
include <stdbool.h> in the common header
1 parent f6f596f commit 9b0e7eb

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

Modules/_ctypes/callbacks.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include "pycore_call.h" // _PyObject_CallNoArgs()
1212
#include "pycore_runtime.h" // _Py_ID()
1313

14-
#include <stdbool.h>
15-
1614
#ifdef MS_WIN32
1715
# include <malloc.h>
1816
#endif

Modules/_ctypes/callproc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ module _ctypes
6666
#include "Python.h"
6767

6868

69-
#include <stdbool.h>
70-
7169
#ifdef MS_WIN32
7270
#include <windows.h>
7371
#include <tchar.h>

Modules/_ctypes/cfield.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#include "pycore_bitutils.h" // _Py_bswap32()
1212
#include "pycore_call.h" // _PyObject_CallNoArgs()
13-
#include <stdbool.h> // bool
1413

1514
#include <ffi.h>
1615
#include "ctypes.h"

Modules/_ctypes/ctypes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# include <alloca.h>
33
#endif
44

5+
#include <stdbool.h>
6+
57
#include "pycore_moduleobject.h" // _PyModule_GetState()
68
#include "pycore_typeobject.h" // _PyType_GetModuleState()
79

0 commit comments

Comments
 (0)