Skip to content

Commit ea1ae76

Browse files
Use HAVE_WINDOWS_CONSOLE_IO where appropriate
1 parent 22f3425 commit ea1ae76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/_io/_iomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ PyInit__io(void)
770770

771771
// PyRawIOBase_Type(PyIOBase_Type) subclasses
772772
ADD_TYPE(m, state->PyFileIO_Type, &fileio_spec, state->PyRawIOBase_Type);
773-
#ifdef MS_WINDOWS
773+
#ifdef HAVE_WINDOWS_CONSOLE_IO
774774
ADD_TYPE(m, state->PyWindowsConsoleIO_Type, &winconsoleio_spec,
775775
state->PyRawIOBase_Type);
776776
#endif

Modules/_io/_iomodule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ struct _io_state {
162162
PyTypeObject *PyStringIO_Type;
163163
PyTypeObject *PyTextIOBase_Type;
164164
PyTypeObject *PyTextIOWrapper_Type;
165-
#ifdef MS_WINDOWS
165+
#ifdef HAVE_WINDOWS_CONSOLE_IO
166166
PyTypeObject *PyWindowsConsoleIO_Type;
167167
#endif
168168
};

0 commit comments

Comments
 (0)