Ifdef'ed unnecessary code for Win32
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/147
This commit is contained in:
parent
8a9435958a
commit
98099ffc9f
|
@ -51,10 +51,10 @@ FcDirCacheCreateUUID (FcChar8 *dir,
|
||||||
FcBool force,
|
FcBool force,
|
||||||
FcConfig *config)
|
FcConfig *config)
|
||||||
{
|
{
|
||||||
const FcChar8 *sysroot = FcConfigGetSysRoot (config);
|
|
||||||
FcChar8 *target;
|
|
||||||
FcBool ret = FcTrue;
|
FcBool ret = FcTrue;
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
const FcChar8 *sysroot = FcConfigGetSysRoot (config);
|
||||||
|
FcChar8 *target;
|
||||||
FcChar8 *uuidname;
|
FcChar8 *uuidname;
|
||||||
|
|
||||||
if (sysroot)
|
if (sysroot)
|
||||||
|
@ -154,9 +154,10 @@ FcBool
|
||||||
FcDirCacheDeleteUUID (const FcChar8 *dir,
|
FcDirCacheDeleteUUID (const FcChar8 *dir,
|
||||||
FcConfig *config)
|
FcConfig *config)
|
||||||
{
|
{
|
||||||
|
FcBool ret = FcTrue;
|
||||||
|
#ifndef _WIN32
|
||||||
const FcChar8 *sysroot = FcConfigGetSysRoot (config);
|
const FcChar8 *sysroot = FcConfigGetSysRoot (config);
|
||||||
FcChar8 *target, *d;
|
FcChar8 *target, *d;
|
||||||
FcBool ret = FcTrue;
|
|
||||||
struct stat statb;
|
struct stat statb;
|
||||||
struct timeval times[2];
|
struct timeval times[2];
|
||||||
|
|
||||||
|
@ -191,6 +192,7 @@ FcDirCacheDeleteUUID (const FcChar8 *dir,
|
||||||
FcStrFree (target);
|
FcStrFree (target);
|
||||||
bail:
|
bail:
|
||||||
FcStrFree (d);
|
FcStrFree (d);
|
||||||
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue