Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Unified Diff: Modules/_localemodule.c

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Modules/_io/fileio.c ('k') | Modules/_math.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Modules/_localemodule.c Thu Dec 27 23:52:36 2012 +0200
+++ b/Modules/_localemodule.c Thu Dec 27 17:35:12 2012 -0500
@@ -11,6 +11,13 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
+#ifdef __MINGW32__
+/* The header libintl.h and library libintl may exist on mingw host.
+ * To be compatible with MSVC build we has to undef some defines.
+ */
+#undef HAVE_LIBINTL_H
+#undef HAVE_BIND_TEXTDOMAIN_CODESET
+#endif
#include <stdio.h>
#include <locale.h>
« no previous file with comments | « Modules/_io/fileio.c ('k') | Modules/_math.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+