From 011049ffe2c2b7e6d69d2a1f2225ea610a3025bf Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Thu, 10 Feb 2011 05:04:12 +0000 Subject: [PATCH] Another macro define for unicode. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12447 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyhead.swg | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/python/pyhead.swg b/Lib/python/pyhead.swg index 98ffa8d63..2ce0fb194 100644 --- a/Lib/python/pyhead.swg +++ b/Lib/python/pyhead.swg @@ -9,6 +9,7 @@ #define PyString_FromString(x) PyUnicode_FromString(x) #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) #define PyString_AsString(str) PyBytes_AsString(str) +#define PyString_Size(str) PyBytes_Size(str) #define PyString_InternFromString(key) PyUnicode_InternFromString(key) #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x)