[pypy-commit] pypy default: On non-NT platforms, "intptr_t" is defined in inttypes.h.

arigo noreply at buildbot.pypy.org
Sun Mar 4 21:55:20 CET 2012


Author: Armin Rigo <arigo at tunes.org>
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


More information about the pypy-commit mailing list