summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-03-18 02:06:38 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-03-18 02:06:38 +0100
commitd0f76fb4b57137d676c1abd141e153b3ada84b43 (patch)
treebdc3bfc0ef8c74e50a68f5d5e09bb8db599ecb5e /Python/pythonrun.c
parent7d7ed34e0327d3ad8d6db5002995a57993c03519 (diff)
downloadcpython-d0f76fb4b57137d676c1abd141e153b3ada84b43.tar.gz
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 bb9f425fb1..3f460562c0 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