From 98099ffc9f1c3fd195075d5d48617ccb73940470 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 22 Mar 2019 07:41:32 +0000 Subject: [PATCH] Ifdef'ed unnecessary code for Win32 Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/147 --- src/fccache.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/fccache.c b/src/fccache.c index ac46ee8..03b4f38 100644 --- a/src/fccache.c +++ b/src/fccache.c @@ -51,10 +51,10 @@ FcDirCacheCreateUUID (FcChar8 *dir, FcBool force, FcConfig *config) { - const FcChar8 *sysroot = FcConfigGetSysRoot (config); - FcChar8 *target; FcBool ret = FcTrue; #ifndef _WIN32 + const FcChar8 *sysroot = FcConfigGetSysRoot (config); + FcChar8 *target; FcChar8 *uuidname; if (sysroot) @@ -154,9 +154,10 @@ FcBool FcDirCacheDeleteUUID (const FcChar8 *dir, FcConfig *config) { + FcBool ret = FcTrue; +#ifndef _WIN32 const FcChar8 *sysroot = FcConfigGetSysRoot (config); FcChar8 *target, *d; - FcBool ret = FcTrue; struct stat statb; struct timeval times[2]; @@ -191,6 +192,7 @@ FcDirCacheDeleteUUID (const FcChar8 *dir, FcStrFree (target); bail: FcStrFree (d); +#endif return ret; }