Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r46944:9b371e455b67 Date: 2011-08-31 15:00 +0200 http://bitbucket.org/pypy/pypy/changeset/9b371e455b67/
Log: Support older versions of ctypes which don't have a c_bool. diff --git a/pypy/rpython/lltypesystem/ll2ctypes.py b/pypy/rpython/lltypesystem/ll2ctypes.py --- a/pypy/rpython/lltypesystem/ll2ctypes.py +++ b/pypy/rpython/lltypesystem/ll2ctypes.py @@ -113,7 +113,7 @@ rffi.LONGLONG: ctypes.c_longlong, rffi.ULONGLONG: ctypes.c_ulonglong, rffi.SIZE_T: ctypes.c_size_t, - lltype.Bool: ctypes.c_bool, + lltype.Bool: getattr(ctypes, "c_bool", ctypes.c_long), llmemory.Address: ctypes.c_void_p, llmemory.GCREF: ctypes.c_void_p, llmemory.WeakRef: ctypes.c_void_p, # XXX _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit