Author: Matti Picus <[email protected]> Branch: Changeset: r70425:14dc8277e88a Date: 2014-04-04 00:20 +0300 http://bitbucket.org/pypy/pypy/changeset/14dc8277e88a/
Log: fix for win32 diff --git a/rpython/rlib/test/test_jit_libffi.py b/rpython/rlib/test/test_jit_libffi.py --- a/rpython/rlib/test/test_jit_libffi.py +++ b/rpython/rlib/test/test_jit_libffi.py @@ -1,13 +1,16 @@ import math import ctypes +import sys from rpython.rtyper.lltypesystem import lltype, rffi from rpython.rlib import clibffi from rpython.rlib.rarithmetic import intmask from rpython.rlib.jit_libffi import CIF_DESCRIPTION from rpython.rlib.jit_libffi import jit_ffi_prep_cif, jit_ffi_call - -math_sin = intmask(ctypes.cast(ctypes.CDLL(None).sin, ctypes.c_void_p).value) +if sys.platform == 'win32': + math_sin = intmask(ctypes.cast(ctypes.cdll.msvcrt.sin, ctypes.c_void_p).value) +else: + math_sin = intmask(ctypes.cast(ctypes.CDLL(None).sin, ctypes.c_void_p).value) math_sin = rffi.cast(rffi.VOIDP, math_sin) _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
