[pypy-commit] pypy default: mark c_malloc and c_free as macros for recent versions of cygwin
Tim Felgentreff
noreply at buildbot.pypy.org
Sat Dec 29 09:37:23 CET 2012
Author: Tim Felgentreff <tim at 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)
More information about the pypy-commit
mailing list