From 864078a5dd6e86fc83ad351a402fc86488f70200 Mon Sep 17 00:00:00 2001 From: Daniel Stutzbach Date: Wed, 25 Aug 2010 19:18:59 +0000 Subject: Issue 8781: Define SIZEOF_WCHAR_T on Windows --- Misc/NEWS | 3 +++ PC/pyconfig.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index 7aebbe7..6d3d497 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,9 @@ What's New in Python 3.2 Alpha 2? Core and Builtins ----------------- +- Issue #9684: Added a definition for SIZEOF_WCHAR_T to PC/pyconfig.h, + to match the pyconfig.h generated by configure on other systems. + - Issue #9666: Only catch AttributeError in hasattr(). All other exceptions that occur during attribute lookup are now propagated to the caller. diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 0c8e108..913b2dc 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -721,6 +721,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ /* Define if the compiler provides a wchar.h header file. */ #define HAVE_WCHAR_H 1 +/* The size of `wchar_t', as computed by sizeof. */ +#define SIZEOF_WCHAR_T 2 + /* Define if you have the dl library (-ldl). */ /* #undef HAVE_LIBDL */ -- cgit v0.12