Fix compilation against old versions of fontconfig
This commit is contained in:
parent
7a0b649cbd
commit
ec58777d01
1 changed files with 3 additions and 0 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue