Commit 70686bdc authored by O H's avatar O H
Browse files

Fix missing-prototypes



thunarx-python-object.c:70:5: error: no previous prototype for '__PyString_Check' [-Werror=missing-prototypes]
thunarx-python-object.c:78:7: error: no previous prototype for '__PyString_AsString' [-Werror=missing-prototypes]

Signed-off-by: O H's avatarOlaf Hering <olaf@aepfle.de>
parent 3cc91d53
......@@ -67,7 +67,7 @@ static GList *thunarx_python_object_get_preferences_menu_items (ThunarxP
static void thunarx_python_object_renamer_provider_iface_init (ThunarxRenamerProviderIface *iface);
static GList *thunarx_python_object_get_renamers (ThunarxRenamerProvider *provider);
int __PyString_Check(PyObject *obj) {
static int __PyString_Check(PyObject *obj) {
#if PY_MAJOR_VERSION >= 3
return PyUnicode_Check(obj);
#else
......@@ -75,7 +75,7 @@ int __PyString_Check(PyObject *obj) {
#endif
}
char* __PyString_AsString(PyObject *obj) {
static char *__PyString_AsString(PyObject *obj) {
#if PY_MAJOR_VERSION >= 3
return PyUnicode_AsUTF8(obj);
#else
......
Supports Markdown
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