Author: Matti Picus <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to