Commits

Armin Rigo committed dd2141d Merge

Merged in timfel/pypy (pull request #104: mark c_malloc and c_free as macros for recent versions of cygwin)

  • Participants
  • Parent commits 99904a8, acbfc9f

Comments (0)

Files changed (1)

File pypy/rlib/rmmap.py

 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)