From 0625e89771e17e3ed5ca1fb37e0fdc9224fc5a2a Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 7 Jan 2008 21:04:21 +0000 Subject: Always define Py_USING_UNICODE, 3rd party software may depend on it. A missing declaration can lead to strange bugs as I had to learn the hard way in the upcoming merge --- Include/unicodeobject.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 8a4e6a2..106228d 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -58,6 +58,9 @@ Copyright (c) Corporation for National Research Initiatives. /* --- Internal Unicode Format -------------------------------------------- */ +/* Python 3.x requires unicode */ +#define Py_USING_UNICODE + /* FIXME: MvL's new implementation assumes that Py_UNICODE_SIZE is properly set, but the default rules below doesn't set it. I'll sort this out some other day -- fredrik@pythonware.com */ -- cgit v0.12