Fix compilation against old versions of fontconfig

This commit is contained in:
Kovid Goyal
2017-11-10 08:28:44 +05:30
parent 7a0b649cbd
commit ec58777d01

View File

@@ -7,6 +7,9 @@
#include "data-types.h"
#include <fontconfig/fontconfig.h>
#ifndef FC_COLOR
#define FC_COLOR "color"
#endif
static inline PyObject*
pybool(FcBool x) { PyObject *ans = x ? Py_True: Py_False; Py_INCREF(ans); return ans; }