summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-03-18 01:06:38 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-03-18 01:06:38 (GMT)
commit518e610977cce63d348d11c4081f9b7af79edd81 (patch)
tree95e4dbd97d2cfe1bc15a92ebd593bb59fe8e2f20 /Python/pythonrun.c
parent07beb375b7bdaef0d6b99a0bd891e9276ea6515b (diff)
downloadcpython-518e610977cce63d348d11c4081f9b7af79edd81.zip
cpython-518e610977cce63d348d11c4081f9b7af79edd81.tar.gz
cpython-518e610977cce63d348d11c4081f9b7af79edd81.tar.bz2
Issue #19977, #19036: Always include <locale.h> in pythonrun.c
to get LC_CTYPE constant on Windows.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index bb9f425..3f46056 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -15,6 +15,7 @@
#include "ast.h"
#include "marshal.h"
#include "osdefs.h"
+#include <locale.h>
#ifdef HAVE_SIGNAL_H
#include <signal.h>
@@ -25,7 +26,6 @@
#endif
#ifdef HAVE_LANGINFO_H
-#include <locale.h>
#include <langinfo.h>
#endif