]> granicus.if.org Git - python/commitdiff
Issue #17905: Do not guard locale include with HAVE_LANGINFO_H.
authorStefan Krah <skrah@bytereef.org>
Mon, 25 Apr 2016 19:38:53 +0000 (21:38 +0200)
committerStefan Krah <skrah@bytereef.org>
Mon, 25 Apr 2016 19:38:53 +0000 (21:38 +0200)
Python/sysmodule.c

index 0c68c544b0435912804f614a58db7d4765d238b1..b5199125a55b4ecc1536e68e4b68a45c9c48e6cb 100644 (file)
@@ -20,6 +20,7 @@ Data members:
 #include "pythread.h"
 
 #include "osdefs.h"
+#include <locale.h>
 
 #ifdef MS_WINDOWS
 #define WIN32_LEAN_AND_MEAN
@@ -33,7 +34,6 @@ extern const char *PyWin_DLLVersionString;
 #endif
 
 #ifdef HAVE_LANGINFO_H
-#include <locale.h>
 #include <langinfo.h>
 #endif