mirror of https://github.com/YosysHQ/yosys.git
dfflibmap: force PathMatchSpecA on WIN32
Depending on the WIN32 compilation mode, PathMatchSpec may expect a LPCSTR or LPCWSTR argument. char* is only convertable to LPCSTR, so use that implementation Signed-off-by: Austin Rovinski <rovinski@nyu.edu>
This commit is contained in:
parent
689feed012
commit
5059bb1d4f
|
@ -124,7 +124,7 @@ static bool parse_pin(LibertyAst *cell, LibertyAst *attr, std::string &pin_name,
|
|||
|
||||
static int glob_match(const char *pattern, const char *string) {
|
||||
#ifdef _WIN32
|
||||
return PathMatchSpec(string, pattern);
|
||||
return PathMatchSpecA(string, pattern);
|
||||
#else
|
||||
return fnmatch(pattern, string, 0) == 0;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue