Disable fontconfig-specific code if CAIRO_HAS_WIN32_FONT is defined.

It doesn't seem to be really needed in this case and causes annoying
WINDOWSTEMPDIR_FONTCONFIG_CACHE directories to be created.
This commit is contained in:
Sergey Popov 2010-03-23 18:03:47 +00:00
parent bffe346bd7
commit cad8798d1a

View file

@ -37,12 +37,13 @@
#include <cairo-features.h>
#ifdef CAIRO_HAS_FT_FONT
#include <fontconfig/fontconfig.h>
#endif
#ifdef CAIRO_HAS_WIN32_FONT
#include <windows.h>
#undef CAIRO_HAS_FT_FONT
#endif
#ifdef CAIRO_HAS_FT_FONT
#include <fontconfig/fontconfig.h>
#endif
static lg::log_domain log_font("font");