Author: Tim Felgentreff <t...@bithug.org> Branch: Changeset: r59615:acbfc9f0577f Date: 2012-12-28 01:09 +0100 http://bitbucket.org/pypy/pypy/changeset/acbfc9f0577f/
Log: mark c_malloc and c_free as macros for recent versions of cygwin diff --git a/pypy/rlib/rmmap.py b/pypy/rlib/rmmap.py --- a/pypy/rlib/rmmap.py +++ b/pypy/rlib/rmmap.py @@ -119,8 +119,9 @@ PTR = rffi.CCHARP if _CYGWIN: - c_malloc, _ = external('malloc', [size_t], PTR) - c_free, _ = external('free', [PTR], lltype.Void) + # XXX: macro=True hack for newer versions of Cygwin (as of 12/2012) + c_malloc, _ = external('malloc', [size_t], PTR, macro=True) + c_free, _ = external('free', [PTR], lltype.Void, macro=True) c_memmove, _ = external('memmove', [PTR, PTR, size_t], lltype.Void) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit