Author: Mark Young <marky1...@gmail.com> Branch: py3k-clock_get_info Changeset: r84758:5c772ebbe6a3 Date: 2016-05-22 14:43 -0400 http://bitbucket.org/pypy/pypy/changeset/5c772ebbe6a3/
Log: Trying something. (Working on my linux box so as to avoid work in cmd.exe) diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py --- a/pypy/module/time/interp_time.py +++ b/pypy/module/time/interp_time.py @@ -732,7 +732,7 @@ LPDWORD = rwin32.LPDWORD _GetSystemTimeAdjustment = rwin32.winexternal( 'GetSystemTimeAdjustment', - [LPDWORD, LPDWORD, rffi.INTP], + [LPDWORD, LPDWORD, rffi.LPBOOL], rffi.INT) def monotonic(space, w_info=None): @@ -758,7 +758,7 @@ resolution = 1e-7 with lltype.scoped_alloc(rwin32.LPDWORD) as time_adjustment, \ lltype.scoped_alloc(rwin32.LPDWORD) as time_increment, \ - lltype.scoped_alloc(rwin32.FILETIME) as is_time_adjustment_disabled: + lltype.scoped_alloc(rwin32.LPBOOL) as is_time_adjustment_disabled: ok = _GetSystemTimeAdjustment(time_adjustment, time_increment, is_time_adjustment_disabled) diff --git a/rpython/rlib/rwin32.py b/rpython/rlib/rwin32.py --- a/rpython/rlib/rwin32.py +++ b/rpython/rlib/rwin32.py @@ -46,6 +46,7 @@ LPWSTR = rffi_platform.SimpleType("LPWSTR", rffi.CWCHARP) LPCWSTR = rffi_platform.SimpleType("LPCWSTR", rffi.CWCHARP) LPDWORD = rffi_platform.SimpleType("LPDWORD", rffi.UINTP) + LPBOOL = rffi_platform.SimpleType("LPBOOL", rffi.LONGP) SIZE_T = rffi_platform.SimpleType("SIZE_T", rffi.SIZE_T) ULONG_PTR = rffi_platform.SimpleType("ULONG_PTR", rffi.ULONG) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit