[pypy-commit] pypy default: a better fix for translation on msvc after 3484aaa1e858

mattip noreply at buildbot.pypy.org
Wed May 7 18:31:45 CEST 2014


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r71390:a29ce0b1a8b4
Date: 2014-05-07 19:30 +0300
http://bitbucket.org/pypy/pypy/changeset/a29ce0b1a8b4/

Log:	a better fix for translation on msvc after 3484aaa1e858

diff --git a/rpython/translator/c/src/asm.c b/rpython/translator/c/src/asm.c
--- a/rpython/translator/c/src/asm.c
+++ b/rpython/translator/c/src/asm.c
@@ -12,6 +12,6 @@
 #  include "src/asm_ppc.c"
 #endif
 
-#if defined(MS_WINDOWS) && defined(_MSC_VER)
+#if defined(_MSC_VER)
 #  include "src/asm_msvc.c"
 #endif
diff --git a/rpython/translator/c/src/asm_msvc.c b/rpython/translator/c/src/asm_msvc.c
--- a/rpython/translator/c/src/asm_msvc.c
+++ b/rpython/translator/c/src/asm_msvc.c
@@ -1,5 +1,6 @@
 #ifdef PYPY_X86_CHECK_SSE2
 #include <intrin.h>
+#include <stdio.h>
 void pypy_x86_check_sse2(void)
 {
     int features;


More information about the pypy-commit mailing list