Commit 0625e897 authored by Christian Heimes's avatar Christian Heimes

Always define Py_USING_UNICODE, 3rd party software may depend on it. A missing...

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
parent 3b06e537
...@@ -58,6 +58,9 @@ Copyright (c) Corporation for National Research Initiatives. ...@@ -58,6 +58,9 @@ Copyright (c) Corporation for National Research Initiatives.
/* --- Internal Unicode Format -------------------------------------------- */ /* --- Internal Unicode Format -------------------------------------------- */
/* Python 3.x requires unicode */
#define Py_USING_UNICODE
/* FIXME: MvL's new implementation assumes that Py_UNICODE_SIZE is /* FIXME: MvL's new implementation assumes that Py_UNICODE_SIZE is
properly set, but the default rules below doesn't set it. I'll properly set, but the default rules below doesn't set it. I'll
sort this out some other day -- fredrik@pythonware.com */ sort this out some other day -- fredrik@pythonware.com */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment