From: Daniel Stutzbach Date: Wed, 25 Aug 2010 19:18:59 +0000 (+0000) Subject: Issue 8781: Define SIZEOF_WCHAR_T on Windows X-Git-Tag: v3.2a2~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=864078a5dd6e86fc83ad351a402fc86488f70200;p=python Issue 8781: Define SIZEOF_WCHAR_T on Windows --- diff --git a/Misc/NEWS b/Misc/NEWS index 7aebbe73fa..6d3d497af4 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 0c8e108866..913b2dc932 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 */