]> granicus.if.org Git - python/commitdiff
Issue #19977, #19036: Always include <locale.h> in pythonrun.c
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 18 Mar 2014 01:06:38 +0000 (02:06 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 18 Mar 2014 01:06:38 +0000 (02:06 +0100)
to get LC_CTYPE constant on Windows.

Python/pythonrun.c

index bb9f425fb1fd2bcb5fb17a709d4a550da215cf97..3f460562c0bdb00c586720ce95f367b38c91d82a 100644 (file)
@@ -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