From 793c1972fe703ab51e4a151b0dc9ac5585a6e25e Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Wed, 27 Jun 2001 19:49:17 +0000 Subject: [PATCH] make wchar_t usable again on Windows (this enables the MBCS codecs) --- PC/config.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PC/config.h b/PC/config.h index 341f9bbbc63..7e54a9dce39 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