summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-24 22:37:25 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-24 22:37:25 (GMT)
commit14b9b110982fd7f00392b898230c4015bd2bdaaa (patch)
tree77ed33b8f8db6c8b91fd253978ea5bc8c859bca6 /Python
parentb28a375f2f4724c129e8683f548c8f1477e00a68 (diff)
downloadcpython-14b9b110982fd7f00392b898230c4015bd2bdaaa.zip
cpython-14b9b110982fd7f00392b898230c4015bd2bdaaa.tar.gz
cpython-14b9b110982fd7f00392b898230c4015bd2bdaaa.tar.bz2
If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified.
Diffstat (limited to 'Python')
-rw-r--r--Python/fileutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c
index 293cb77..e759856 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -16,13 +16,13 @@ extern wchar_t* _Py_DecodeUTF8_surrogateescape(const char *s, Py_ssize_t size);
PyObject *
_Py_device_encoding(int fd)
{
-#if defined(MS_WINDOWS) || defined(MS_WIN64)
+#if defined(MS_WINDOWS)
UINT cp;
#endif
if (!_PyVerify_fd(fd) || !isatty(fd)) {
Py_RETURN_NONE;
}
-#if defined(MS_WINDOWS) || defined(MS_WIN64)
+#if defined(MS_WINDOWS)
if (fd == 0)
cp = GetConsoleCP();
else if (fd == 1 || fd == 2)