Author: Taewook Kang <twk...@gmail.com>
Branch: 
Changeset: r1509:d993a73f4d60
Date: 2014-05-01 20:27 +0900
http://bitbucket.org/cffi/cffi/changeset/d993a73f4d60/

Log:    issue #156: _Bool type already included in VS2013

diff --git a/c/misc_win32.h b/c/misc_win32.h
--- a/c/misc_win32.h
+++ b/c/misc_win32.h
@@ -222,7 +222,9 @@
 typedef unsigned __int16 uint16_t;
 typedef unsigned __int32 uint32_t;
 typedef unsigned __int64 uint64_t;
+#if !defined(_MSC_VER) || _MSC_VER <= 1700
 typedef unsigned char _Bool;
+#endif
 
 
 /************************************************************/
diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py
--- a/cffi/vengine_cpy.py
+++ b/cffi/vengine_cpy.py
@@ -780,7 +780,9 @@
 typedef unsigned __int16 uint16_t;
 typedef unsigned __int32 uint32_t;
 typedef unsigned __int64 uint64_t;
+#if !defined(_MSC_VER) || _MSC_VER <= 1700
 typedef unsigned char _Bool;
+#endif
 #else
 #if (defined (__SVR4) && defined (__sun)) || defined(_AIX)
 #  include <alloca.h>
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to