mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	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
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue