summaryrefslogtreecommitdiffstats
path: root/PC/_testconsole.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-01-11 23:35:26 (GMT)
committerGitHub <noreply@github.com>2022-01-11 23:35:26 (GMT)
commit08bc1bad11cad39f508bd662c9b28fcd9c995512 (patch)
treeec67f0676ed9efd59e954c9c3eb15ad97a8ae461 /PC/_testconsole.c
parent607d8a838f29ad3c4c4e85b39f338dade5f9cafe (diff)
downloadcpython-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 'PC/_testconsole.c')
-rw-r--r--PC/_testconsole.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/PC/_testconsole.c b/PC/_testconsole.c
index db84f73..a830883 100644
--- a/PC/_testconsole.c
+++ b/PC/_testconsole.c
@@ -1,11 +1,15 @@
-
/* Testing module for multi-phase initialization of extension modules (PEP 489)
*/
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "Python.h"
#ifdef MS_WINDOWS
+#include "pycore_fileutils.h" // _Py_get_osfhandle()
#include "..\modules\_io\_iomodule.h"
#define WIN32_LEAN_AND_MEAN