summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index aabf20b..f4d2716 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -22,9 +22,15 @@ Copyright (C) 1994 Steen Lumholt.
*/
#define PY_SSIZE_T_CLEAN
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
#include "Python.h"
#include <ctype.h>
+#ifdef MS_WINDOWS
+# include "pycore_fileutils.h" // _Py_stat()
+#endif
#ifdef MS_WINDOWS
#include <windows.h>