Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 793c197

Browse files
author
Fredrik Lundh
committed
make wchar_t usable again on Windows (this enables the MBCS codecs)
1 parent 5755ce6 commit 793c197

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

PC/config.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,13 @@ typedef unsigned long uintptr_t;
493493
/* Define as the size of the unicode type. */
494494
#define Py_UNICODE_SIZE SIZEOF_SHORT
495495

496+
/* Define if you have a useable wchar_t type defined in wchar.h; useable
497+
means wchar_t must be 16-bit unsigned type. (see
498+
Include/unicodeobject.h). */
499+
#if Py_UNICODE_SIZE == 2
500+
#define HAVE_USABLE_WCHAR_T
501+
#endif
502+
496503
/* Define if you want cycle garbage collection */
497504
#define WITH_CYCLE_GC 1
498505

0 commit comments

Comments
 (0)