[pypy-svn] r77026 - pypy/branch/fast-forward/pypy/rlib/rstruct
afa at codespeak.net
afa at codespeak.net
Sun Sep 12 19:13:24 CEST 2010
Author: afa
Date: Sun Sep 12 19:13:22 2010
New Revision: 77026
Modified:
pypy/branch/fast-forward/pypy/rlib/rstruct/nativefmttable.py
Log:
Let the struct module compile with the Microsoft compiler
Modified: pypy/branch/fast-forward/pypy/rlib/rstruct/nativefmttable.py
==============================================================================
--- pypy/branch/fast-forward/pypy/rlib/rstruct/nativefmttable.py (original)
+++ pypy/branch/fast-forward/pypy/rlib/rstruct/nativefmttable.py Sun Sep 12 19:13:22 2010
@@ -80,7 +80,10 @@
'?': '_Bool',
}
- pre_include_bits = []
+ pre_include_bits = ["""
+ #ifdef _MSC_VER
+ #define _Bool char
+ #endif"""]
field_names = dict.fromkeys(INSPECT)
for fmtchar, ctype in INSPECT.iteritems():
field_name = ctype.replace(" ", "_").replace("*", "star")
More information about the Pypy-commit
mailing list