CXX_BUILD buildfixes

This commit is contained in:
libretroadmin 2023-02-23 17:09:45 +01:00
parent 32962dfc99
commit 4fa19e552a
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ const char *path_get_archive_delim(const char *path)
const char *path_get_extension(const char *path) const char *path_get_extension(const char *path)
{ {
const char *ext; const char *ext;
if (!string_is_empty(path) && ((ext = strrchr(path_basename(path), '.')))) if (!string_is_empty(path) && ((ext = (char*)strrchr(path_basename(path), '.'))))
return ext + 1; return ext + 1;
return ""; return "";
} }

View File

@ -734,7 +734,7 @@ static int database_info_list_iterate_found_match(
strlcpy(entry_label, db_info_entry->name, str_len); strlcpy(entry_label, db_info_entry->name, str_len);
else if (!string_is_empty(entry_path)) else if (!string_is_empty(entry_path))
{ {
char *delim = strchr(entry_path, '#'); char *delim = (char*)strchr(entry_path, '#');
if (delim) if (delim)
*delim = '\0'; *delim = '\0';