From 5059bb1d4fa5e75f0ebc7f2a4a3938b729155fed Mon Sep 17 00:00:00 2001 From: Austin Rovinski Date: Mon, 19 Feb 2024 14:40:46 -0500 Subject: [PATCH] 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 --- passes/techmap/dfflibmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc index 312f34be47f..6caf282bd17 100644 --- a/passes/techmap/dfflibmap.cc +++ b/passes/techmap/dfflibmap.cc @@ -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