[pypy-commit] pypy default: find time() in msvcrt on windows
mattip
noreply at buildbot.pypy.org
Sun Apr 6 23:43:07 CEST 2014
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r70478:8d015b1d68df
Date: 2014-04-06 18:52 +0300
http://bitbucket.org/pypy/pypy/changeset/8d015b1d68df/
Log: find time() in msvcrt on windows
diff --git a/rpython/rtyper/lltypesystem/ll2ctypes.py b/rpython/rtyper/lltypesystem/ll2ctypes.py
--- a/rpython/rtyper/lltypesystem/ll2ctypes.py
+++ b/rpython/rtyper/lltypesystem/ll2ctypes.py
@@ -1172,6 +1172,8 @@
# XXX magic: on Windows try to load the function from 'kernel32' too
if cfunc is None and hasattr(ctypes, 'windll'):
cfunc = get_on_lib(ctypes.windll.kernel32, funcname)
+ if cfunc is None and hasattr(ctypes, 'windll'):
+ cfunc = get_on_lib(ctypes.cdll.msvcrt, funcname)
if cfunc is None:
# function name not found in any of the libraries
More information about the pypy-commit
mailing list