From: Fredrik Lundh Date: Wed, 27 Jun 2001 19:49:17 +0000 (+0000) Subject: make wchar_t usable again on Windows (this enables the MBCS codecs) X-Git-Tag: v2.2a3~1392 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=793c1972fe703ab51e4a151b0dc9ac5585a6e25e;p=python make wchar_t usable again on Windows (this enables the MBCS codecs) --- diff --git a/PC/config.h b/PC/config.h index 341f9bbbc6..7e54a9dce3 100644 --- a/PC/config.h +++ b/PC/config.h @@ -493,6 +493,13 @@ typedef unsigned long uintptr_t; /* Define as the size of the unicode type. */ #define Py_UNICODE_SIZE SIZEOF_SHORT +/* Define if you have a useable wchar_t type defined in wchar.h; useable + means wchar_t must be 16-bit unsigned type. (see + Include/unicodeobject.h). */ +#if Py_UNICODE_SIZE == 2 +#define HAVE_USABLE_WCHAR_T +#endif + /* Define if you want cycle garbage collection */ #define WITH_CYCLE_GC 1