We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc8c0d5 commit 65ce90bCopy full SHA for 65ce90b
1 file changed
Python/colorize.c
@@ -8,7 +8,10 @@
8
9
#include <stdlib.h> // getenv()
10
#include <string.h> // strcmp()
11
-#if !defined(MS_WINDOWS)
+#ifdef MS_WINDOWS
12
+# include <windows.h> // GetStdHandle(), GetConsoleMode()
13
+# include <io.h> // isatty(), fileno()
14
+#else
15
# include <unistd.h> // isatty()
16
#endif
17
0 commit comments