pkg: use PKG_CONFIG_EXT everywhere

pull/4/head
William Pitcock 2012-05-02 19:11:20 +00:00
parent 52433aa27a
commit ca4843822f
1 changed files with 2 additions and 2 deletions

4
pkg.c
View File

@ -75,13 +75,13 @@ pkg_find(const char *name)
while (iter < count)
{
snprintf(locbuf, sizeof locbuf, "%s/%s.pc", path[iter], name);
snprintf(locbuf, sizeof locbuf, "%s/%s" PKG_CONFIG_EXT, path[iter], name);
if (f = fopen(locbuf, "r"))
return parse_file(locbuf, f);
}
}
snprintf(locbuf, sizeof locbuf, "%s/%s.pc", PKG_DEFAULT_PATH, name);
snprintf(locbuf, sizeof locbuf, "%s/%s" PKG_CONFIG_EXT, PKG_DEFAULT_PATH, name);
if (f = fopen(locbuf, "r"))
return parse_file(locbuf, f);