summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-06-27 19:49:17 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-06-27 19:49:17 (GMT)
commit793c1972fe703ab51e4a151b0dc9ac5585a6e25e (patch)
treec4c4c8a12be7bae9b19c0445b41c9f9fb77da231
parent5755ce693dfc497389ab89e8ae0e62c3cc89d4ff (diff)
downloadcpython-793c1972fe703ab51e4a151b0dc9ac5585a6e25e.zip
cpython-793c1972fe703ab51e4a151b0dc9ac5585a6e25e.tar.gz
cpython-793c1972fe703ab51e4a151b0dc9ac5585a6e25e.tar.bz2
make wchar_t usable again on Windows (this enables the MBCS codecs)
-rw-r--r--PC/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/PC/config.h b/PC/config.h
index 341f9bb..7e54a9d 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