Author: mattip <matti.pi...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit