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
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

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; }