mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Add C89 workaround
This commit is contained in:
parent
4c7ae72c62
commit
4b9143430c
@ -99,13 +99,20 @@ static int database_info_iterate_start(database_info_handle_t *db,
|
|||||||
db->list->size,
|
db->list->size,
|
||||||
msg_hash_to_str(MSG_SCANNING),
|
msg_hash_to_str(MSG_SCANNING),
|
||||||
name);
|
name);
|
||||||
#else
|
#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
|
||||||
snprintf(msg, sizeof(msg),
|
snprintf(msg, sizeof(msg),
|
||||||
"%zu/%zu: %s %s...\n",
|
"%zu/%zu: %s %s...\n",
|
||||||
db->list_ptr,
|
db->list_ptr,
|
||||||
db->list->size,
|
db->list->size,
|
||||||
msg_hash_to_str(MSG_SCANNING),
|
msg_hash_to_str(MSG_SCANNING),
|
||||||
name);
|
name);
|
||||||
|
#else
|
||||||
|
snprintf(msg, sizeof(msg),
|
||||||
|
"%lu/%lu: %s %s...\n",
|
||||||
|
(unsigned long)db->list_ptr,
|
||||||
|
(unsigned long)db->list->size,
|
||||||
|
msg_hash_to_str(MSG_SCANNING),
|
||||||
|
name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!string_is_empty(msg))
|
if (!string_is_empty(msg))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user