summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaewook Kang <twkang@gmail.com>2014-05-01 20:27:48 +0900
committerTaewook Kang <twkang@gmail.com>2014-05-01 20:27:48 +0900
commit45725d34d2bdd19bec5913d61d116ff8d15fcdee (patch)
tree73eba8880a15329177adbe19c1f1e50c25c66c13
parent704dd5ea9bc34d4b5b5165e632ebeed8de7e16a1 (diff)
downloadcffi-45725d34d2bdd19bec5913d61d116ff8d15fcdee.tar.gz
issue #156: _Bool type already included in VS2013
-rw-r--r--c/misc_win32.h2
-rw-r--r--cffi/vengine_cpy.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/c/misc_win32.h b/c/misc_win32.h
index 70195b2..984e882 100644
--- a/c/misc_win32.h
+++ b/c/misc_win32.h
@@ -222,7 +222,9 @@ typedef unsigned __int8 uint8_t;
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
index 468c516..272e993 100644
--- a/cffi/vengine_cpy.py
+++ b/cffi/vengine_cpy.py
@@ -780,7 +780,9 @@ typedef unsigned __int8 uint8_t;
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>