summaryrefslogtreecommitdiffstats
path: root/Include/pyerrors.h
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-11-21 20:08:33 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2002-11-21 20:08:33 (GMT)
commitbf73db835a3e0302d38a86125dad55a60323f8ae (patch)
treef73400de1e97c7892141f6726fa3a1972bf567a7 /Include/pyerrors.h
parentcdd215789c86f3cd729cf10c9d6fe6b3d5df5d7b (diff)
downloadcpython-bf73db835a3e0302d38a86125dad55a60323f8ae.zip
cpython-bf73db835a3e0302d38a86125dad55a60323f8ae.tar.gz
cpython-bf73db835a3e0302d38a86125dad55a60323f8ae.tar.bz2
Fix PEP 293 related problems with --disable-unicode builds
reported by Michael Hudson in http://mail.python.org/pipermail/python-dev/2002-November/030299.html
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r--Include/pyerrors.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index 18dee28..8685849 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -138,8 +138,10 @@ PyAPI_FUNC(void) PyErr_SetInterrupt(void);
PyAPI_FUNC(void) PyErr_SyntaxLocation(char *, int);
PyAPI_FUNC(PyObject *) PyErr_ProgramText(char *, int);
+#ifdef Py_USING_UNICODE
/* The following functions are used to create and modify unicode
exceptions from C */
+
/* create a UnicodeDecodeError object */
PyAPI_FUNC(PyObject *) PyUnicodeDecodeError_Create(
const char *, const char *, int, int, int, const char *);
@@ -198,6 +200,7 @@ PyAPI_FUNC(int) PyUnicodeDecodeError_SetReason(
PyObject *, const char *);
PyAPI_FUNC(int) PyUnicodeTranslateError_SetReason(
PyObject *, const char *);
+#endif
/* These APIs aren't really part of the error implementation, but