Skip to content

Commit

Permalink
dfflibmap: force PathMatchSpecA on WIN32
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rovinski committed Feb 19, 2024
1 parent 689feed commit 5059bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passes/techmap/dfflibmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5059bb1

Please sign in to comment.