[pypy-commit] cffi default: Add stdint.h as an explicit include on non-Windows too.

arigo noreply at buildbot.pypy.org
Tue Jun 24 16:59:04 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r1524:447147331347
Date: 2014-06-24 16:59 +0200
http://bitbucket.org/cffi/cffi/changeset/447147331347/

Log:	Add stdint.h as an explicit include on non-Windows too.

diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -34,6 +34,7 @@
    typedef unsigned char _Bool;
 # endif
 #else
+# include <stdint.h>
 # if (defined (__SVR4) && defined (__sun)) || defined(_AIX)
 #  include <alloca.h>
 # endif
diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py
--- a/cffi/vengine_cpy.py
+++ b/cffi/vengine_cpy.py
@@ -790,6 +790,7 @@
    typedef unsigned char _Bool;
 # endif
 #else
+# include <stdint.h>
 # if (defined (__SVR4) && defined (__sun)) || defined(_AIX)
 #  include <alloca.h>
 # endif
diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py
--- a/cffi/vengine_gen.py
+++ b/cffi/vengine_gen.py
@@ -572,6 +572,7 @@
    typedef unsigned char _Bool;
 # endif
 #else
+# include <stdint.h>
 # if (defined (__SVR4) && defined (__sun)) || defined(_AIX)
 #  include <alloca.h>
 # endif


More information about the pypy-commit mailing list