Skip to content

Commit 0f97249

Browse files
Fix modules on Windows.
1 parent 6628e85 commit 0f97249

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Modules/_json.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "Python.h"
2+
#ifdef Py_BUILD_CORE /* _json is built-in on Windows. */
3+
#include "internal/pystate.h"
4+
#endif
25
#include "structmember.h"
36
#include "accu.h"
47

Modules/_pickle.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "Python.h"
2+
#ifdef Py_BUILD_CORE /* _pickle is built-in on Windows. */
3+
#include "internal/pystate.h"
4+
#endif
25
#include "structmember.h"
36

47
PyDoc_STRVAR(pickle_module_doc,

0 commit comments

Comments
 (0)