updated build system
This commit is contained in:
		
							
								
								
									
										9
									
								
								support/3rd_party/src/utils/path.cpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								support/3rd_party/src/utils/path.cpp
									
									
									
									
										vendored
									
									
								
							| @@ -178,9 +178,14 @@ auto resolve(std::wstring_view path) -> std::wstring { | ||||
| auto strip_to_file_name(std::string path) -> std::string { | ||||
| #if defined(_WIN32) | ||||
|   return ::PathFindFileName(path.c_str()); | ||||
| #else | ||||
| #else  // !defined(_WIN32) | ||||
|   return utils::string::contains(path, "/") ? basename(path.data()) : path; | ||||
| #endif | ||||
| #endif // defined(_WIN32) | ||||
| } | ||||
|  | ||||
| auto strip_to_file_name(std::wstring path) -> std::wstring { | ||||
|   return utils::string::to_utf8( | ||||
|       strip_to_file_name(utils::string::to_utf8(path))); | ||||
| } | ||||
|  | ||||
| auto unmake_file_uri(std::string_view uri) -> std::string { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user