diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-11 23:35:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 23:35:26 (GMT) |
commit | 08bc1bad11cad39f508bd662c9b28fcd9c995512 (patch) | |
tree | ec67f0676ed9efd59e954c9c3eb15ad97a8ae461 /Modules | |
parent | 607d8a838f29ad3c4c4e85b39f338dade5f9cafe (diff) | |
download | cpython-08bc1bad11cad39f508bd662c9b28fcd9c995512.zip cpython-08bc1bad11cad39f508bd662c9b28fcd9c995512.tar.gz cpython-08bc1bad11cad39f508bd662c9b28fcd9c995512.tar.bz2 |
bpo-46303: Fix fileutils.h compiler warnings (GH-30550)
Add missing pycore_fileutils.h include in _tkinter.c and
_testconsole.c.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 6 |
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> |