ifdef'd the unnecessary code for win32

This commit is contained in:
Akira TAGOH 2015-02-24 15:01:14 +09:00
parent ed0d705e22
commit f43c58189b
1 changed files with 4 additions and 0 deletions

View File

@ -2249,7 +2249,9 @@ FcParseInclude (FcConfigParse *parse)
FcChar8 *s; FcChar8 *s;
const FcChar8 *attr; const FcChar8 *attr;
FcBool ignore_missing = FcFalse; FcBool ignore_missing = FcFalse;
#ifndef _WIN32
FcBool deprecated = FcFalse; FcBool deprecated = FcFalse;
#endif
FcChar8 *prefix = NULL, *p; FcChar8 *prefix = NULL, *p;
static FcChar8 *userdir = NULL; static FcChar8 *userdir = NULL;
static FcChar8 *userconf = NULL; static FcChar8 *userconf = NULL;
@ -2263,9 +2265,11 @@ FcParseInclude (FcConfigParse *parse)
attr = FcConfigGetAttribute (parse, "ignore_missing"); attr = FcConfigGetAttribute (parse, "ignore_missing");
if (attr && FcConfigLexBool (parse, (FcChar8 *) attr) == FcTrue) if (attr && FcConfigLexBool (parse, (FcChar8 *) attr) == FcTrue)
ignore_missing = FcTrue; ignore_missing = FcTrue;
#ifndef _WIN32
attr = FcConfigGetAttribute (parse, "deprecated"); attr = FcConfigGetAttribute (parse, "deprecated");
if (attr && FcConfigLexBool (parse, (FcChar8 *) attr) == FcTrue) if (attr && FcConfigLexBool (parse, (FcChar8 *) attr) == FcTrue)
deprecated = FcTrue; deprecated = FcTrue;
#endif
attr = FcConfigGetAttribute (parse, "prefix"); attr = FcConfigGetAttribute (parse, "prefix");
if (attr && FcStrCmp (attr, (const FcChar8 *)"xdg") == 0) if (attr && FcStrCmp (attr, (const FcChar8 *)"xdg") == 0)
{ {