Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r61872:f722b05bf117
Date: 2013-02-27 17:27 -0800
http://bitbucket.org/pypy/pypy/changeset/f722b05bf117/

Log:    hopefully fix compilation/defines on most platforms

diff --git a/pypy/module/_codecs/locale.c b/pypy/module/_codecs/locale.c
--- a/pypy/module/_codecs/locale.c
+++ b/pypy/module/_codecs/locale.c
@@ -4,13 +4,20 @@
 /*
 #include "Python.h"
 */
+#include <locale.h>
 #include <stdlib.h>
+#include <stdio.h>
 #include <string.h>
 #include <wchar.h>
+#ifdef _MSC_VER
+#define MS_WINDOWS
+#endif
 #define PyMem_Malloc malloc
 #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>
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to