Skip to content

Commit 9df7cb3

Browse files
committed
fix compilation
1 parent edd033a commit 9df7cb3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ bytes(cdata)
125125
#include "ctypes.h"
126126

127127
#include "pycore_long.h" // _PyLong_GetZero()
128+
#include "pycore_pyerrors.h" // _PyErr_SetLocaleString()
128129

129130
ctypes_state global_state;
130131

Modules/_ctypes/callproc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
#define DONT_USE_SEH
9797
#endif
9898

99+
#include "pycore_pyerrors.h" // _PyErr_SetLocaleString()
99100
#include "pycore_runtime.h" // _PyRuntime
100101
#include "pycore_global_objects.h" // _Py_ID()
101102

Modules/_gdbmmodule.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
/* Author: Anthony Baxter, after dbmmodule.c */
44
/* Doc strings: Mitch Chapman */
55

6+
// required for pycore_pyerrors.h
7+
#ifndef Py_BUILD_CORE_BUILTIN
8+
# define Py_BUILD_CORE_MODULE 1
9+
#endif
10+
611
#define PY_SSIZE_T_CLEAN
712
#include "Python.h"
813
#include "pycore_pyerrors.h" // _PyErr_SetLocaleString()

0 commit comments

Comments
 (0)