Code

python plugin: fix building with python 3
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 5 Aug 2016 17:46:08 +0000 (19:46 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 5 Aug 2016 17:46:08 +0000 (19:46 +0200)
commitb55658bb615f6d33e70791d2a7d2a0f2114598cc
tree8ca0dc1360f3df3cc965d75513477cc9db7d0748
parent9540b75f95d984fd90fca34545674ba3e8f34e8d
python plugin: fix building with python 3

Python 3 doesn't have PyUnicode_SetDefaultEncoding()

CC       python_la-python.lo
python.c: In function 'cpy_config':
python.c:1138:4: error: implicit declaration of function 'PyUnicode_SetDefaultEncoding' [-Werror=implicit-function-declaration]
    if (PyUnicode_SetDefaultEncoding(encoding)) {
    ^
cc1: all warnings being treated as errors
*** Error code 1
src/python.c