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

Unified Diff: Python/ceval.c

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 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 | « pyconfig.h.in ('k') | Python/dynamic_annotations.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Python/ceval.c Thu Dec 27 23:52:36 2012 +0200
+++ b/Python/ceval.c Thu Dec 27 17:35:12 2012 -0500
@@ -11,6 +11,17 @@
#include "Python.h"
+#ifdef __MINGW32__
+/* GCC 4.4+ (mingw) support posix threads!
+ Note: macro __MINGW_GCC is defined for GCC 4.4+ but
+ not for GCC 3.4.5 (last stable from 3.x )
+ Instead to use __MINGW_GCC we will use more common
+ __MINGW32__ to prevent case when in GCC 3.4.5 build
+ envirionment is installed posix thread package.
+ */
+# undef HAVE_PTHREAD_H
+#endif
+
#include "code.h"
#include "frameobject.h"
#include "opcode.h"
« no previous file with comments | « pyconfig.h.in ('k') | Python/dynamic_annotations.c » ('j') | no next file with comments »

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