[Python-checkins] cpython: hardcode sizeof(_Bool) on windows

benjamin.peterson python-checkins at python.org
Wed Sep 7 14:40:22 EDT 2016


https://hg.python.org/cpython/rev/aac00f62273c
changeset:   103239:aac00f62273c
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Sep 07 11:39:46 2016 -0700
summary:
  hardcode sizeof(_Bool) on windows

files:
  PC/pyconfig.h |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/PC/pyconfig.h b/PC/pyconfig.h
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -643,6 +643,9 @@
 /* The size of `wchar_t', as computed by sizeof. */
 #define SIZEOF_WCHAR_T 2
 
+/* The size of `_Bool', as computed by sizeof. */
+#define SIZEOF__BOOL 1
+
 /* The size of `pid_t', as computed by sizeof. */
 #define SIZEOF_PID_T SIZEOF_INT
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list