Skip to content

Commit 22bbdcd

Browse files
committed
Fix build on macOS and Windows
1 parent 1ff810d commit 22bbdcd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Parser/myreadline.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
#include "Python.h"
1313
#include "pycore_fileutils.h" // _Py_BEGIN_SUPPRESS_IPH
14-
#include "pycore_pystate.h" // _PyThreadState_GET()
14+
#include "pycore_interp.h" // _PyInterpreterState_GetConfig()
15+
#include "pycore_pystate.h" // _PyThreadState_GET()
1516
#ifdef MS_WINDOWS
1617
# ifndef WIN32_LEAN_AND_MEAN
1718
# define WIN32_LEAN_AND_MEAN

Python/pytime.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#include "Python.h"
22
#include "pycore_initconfig.h" // _PyStatus_ERR
3-
#include "pycore_time.h" // PyTime_t
43
#include "pycore_pystate.h" // _Py_AssertHoldsTstate()
4+
#include "pycore_runtime.h" // _PyRuntime
5+
#include "pycore_time.h" // PyTime_t
56

67
#include <time.h> // gmtime_r()
78
#ifdef HAVE_SYS_TIME_H

0 commit comments

Comments
 (0)