[pypy-commit] pypy default: Use correct definition on mingw
sthalik
noreply at buildbot.pypy.org
Tue Mar 26 05:23:26 CET 2013
Author: Stanislaw Halik <sthalik at misaki.pl>
Branch:
Changeset: r62793:4843dc2adccc
Date: 2013-03-26 05:17 +0100
http://bitbucket.org/pypy/pypy/changeset/4843dc2adccc/
Log: Use correct definition on mingw
Attempting to use msvc definition leads to compilation failure
diff --git a/rpython/translator/c/src/stacklet/slp_platformselect.h b/rpython/translator/c/src/stacklet/slp_platformselect.h
--- a/rpython/translator/c/src/stacklet/slp_platformselect.h
+++ b/rpython/translator/c/src/stacklet/slp_platformselect.h
@@ -1,5 +1,6 @@
-
-#if defined(_M_IX86)
+#if defined(__MINGW32__)
+#include "switch_x86_gcc.h" /* gcc on X86 */
+#elif defined(_M_IX86)
#include "switch_x86_msvc.h" /* MS Visual Studio on X86 */
#elif defined(_M_X64)
#include "switch_x64_msvc.h" /* MS Visual Studio on X64 */
More information about the pypy-commit
mailing list