[pypy-commit] pypy py3k: fix locale_codec.c for MSVC
mattip
noreply at buildbot.pypy.org
Fri Jul 31 11:17:39 CEST 2015
Author: mattip <matti.picus at gmail.com>
Branch: py3k
Changeset: r78722:5ffd586cbbf4
Date: 2015-07-31 09:10 +0300
http://bitbucket.org/pypy/pypy/changeset/5ffd586cbbf4/
Log: fix locale_codec.c for MSVC
diff --git a/pypy/module/_codecs/locale_codec.c b/pypy/module/_codecs/locale_codec.c
--- a/pypy/module/_codecs/locale_codec.c
+++ b/pypy/module/_codecs/locale_codec.c
@@ -5,7 +5,6 @@
#include "Python.h"
*/
#include <ctype.h>
-#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -17,11 +16,12 @@
#define PyMem_Free free
/* C99 but recent Windows has it */
#define HAVE_MBRTOWC 1
-/* Hopefully? */
-#define HAVE_LANGINFO_H
#ifdef MS_WINDOWS
# include <windows.h>
+#else
+#include <locale.h>
+#define HAVE_LANGINFO_H
#endif
#ifdef HAVE_LANGINFO_H
More information about the pypy-commit
mailing list