summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2007-05-23 02:04:28 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2007-05-23 02:04:28 (GMT)
commit5f2ba9f2b1d5bd7ce9a6388dc58624403ca54547 (patch)
tree86ba1654f540f2acb1eafb75f0f6553959aaec6c
parenta69c02ecd11fd54c7c010c0640dcd2e54a62e309 (diff)
downloadcpython-5f2ba9f2b1d5bd7ce9a6388dc58624403ca54547.zip
cpython-5f2ba9f2b1d5bd7ce9a6388dc58624403ca54547.tar.gz
cpython-5f2ba9f2b1d5bd7ce9a6388dc58624403ca54547.tar.bz2
Remove definition of PY_UNICODE_TYPE from pyconfig.h, allowing the
definition in unicodeobject.h to be used, giving us the desired wchar_t in place of 'unsigned short'. As discussed on python-dev.
-rw-r--r--PC/pyconfig.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 91cc823..6936d65 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -491,22 +491,13 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define if you want to have a Unicode type. */
#define Py_USING_UNICODE
-/* Define as the integral type used for Unicode representation. */
-#define PY_UNICODE_TYPE unsigned short
-
/* 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
+/* This is enough for unicodeobject.h to do the "right thing" on Windows. */
+#define Py_UNICODE_SIZE 2
/* Define to indicate that the Python Unicode representation can be passed
as-is to Win32 Wide API. */
#define Py_WIN_WIDE_FILENAMES
-#endif
/* Use Python's own small-block memory-allocator. */
#define WITH_PYMALLOC 1