Author: Armin Rigo <[email protected]> Branch: Changeset: r1053:15cc29368735 Date: 2012-11-20 23:48 +0100 http://bitbucket.org/cffi/cffi/changeset/15cc29368735/
Log: Move around the _Bool declaration diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -215,10 +215,6 @@ # include "wchar_helper.h" #endif -#ifndef HAVE_C99_BOOL -typedef unsigned char _Bool; -#endif - /************************************************************/ static CTypeDescrObject * diff --git a/c/misc_win32.h b/c/misc_win32.h --- a/c/misc_win32.h +++ b/c/misc_win32.h @@ -126,6 +126,7 @@ typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; typedef SSIZE_T ssize_t; +typedef unsigned char _Bool; /************************************************************/ diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py --- a/cffi/vengine_cpy.py +++ b/cffi/vengine_cpy.py @@ -672,6 +672,7 @@ typedef unsigned __int16 uint16_t; typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; +typedef unsigned char _Bool; #endif #if PY_MAJOR_VERSION < 3 diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py --- a/cffi/vengine_gen.py +++ b/cffi/vengine_gen.py @@ -478,6 +478,7 @@ typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; typedef SSIZE_T ssize_t; +typedef unsigned char _Bool; #else # include <stdint.h> #endif _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
