libpkgconf: pkg: windows can use either \ or / as directory separators

ref #118
feature/tap-sh
William Pitcock 2017-06-16 15:27:23 -05:00
parent d45e850130
commit 03f7841065
1 changed files with 4 additions and 0 deletions

View File

@ -278,6 +278,10 @@ pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE *
/* make module id */
if ((idptr = strrchr(pkg->filename, PKG_DIR_SEP_S)) != NULL)
idptr++;
#ifdef _WIN32
else if ((idptr = strrchr(pkg->filename, '/')) != NULL)
idptr++;
#endif
else
idptr = pkg->filename;