[pypy-svn] r47371 - pypy/dist/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Wed Oct 10 10:40:06 CEST 2007


Author: fijal
Date: Wed Oct 10 10:40:05 2007
New Revision: 47371

Modified:
   pypy/dist/pypy/rlib/libffi.py
Log:
Strange hack with trying different includes


Modified: pypy/dist/pypy/rlib/libffi.py
==============================================================================
--- pypy/dist/pypy/rlib/libffi.py	(original)
+++ pypy/dist/pypy/rlib/libffi.py	Wed Oct 10 10:40:05 2007
@@ -54,7 +54,11 @@
 class cConfig:
     pass
 
-cConfig.__dict__.update(rffi_platform.configure(CConfig))
+try:
+    cConfig.__dict__.update(rffi_platform.configure(CConfig))
+except:
+    includes[1] = ['ffi/ffi.h']
+    cConfig.__dict__.update(rffi_platform.configure(CConfig))
 
 FFI_TYPE_P.TO.become(cConfig.ffi_type)
 size_t = cConfig.size_t



More information about the Pypy-commit mailing list