Author: Armin Rigo <[email protected]>
Branch:
Changeset: r53211:91a65138eeb2
Date: 2012-03-04 21:55 +0100
http://bitbucket.org/pypy/pypy/changeset/91a65138eeb2/
Log: On non-NT platforms, "intptr_t" is defined in inttypes.h. I hope
it's a general rule.
diff --git a/pypy/rpython/tool/rfficache.py b/pypy/rpython/tool/rfficache.py
--- a/pypy/rpython/tool/rfficache.py
+++ b/pypy/rpython/tool/rfficache.py
@@ -14,6 +14,8 @@
def ask_gcc(question, add_source=""):
includes = ['stdlib.h', 'stdio.h', 'sys/types.h']
+ if os.name != 'nt':
+ includes += ['inttypes.h']
include_string = "\n".join(["#include <%s>" % i for i in includes])
c_source = py.code.Source('''
// includes
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit