C89_BUILD fixes

This commit is contained in:
twinaphex 2015-12-26 08:13:33 +01:00
parent 37a5139f5f
commit 68d66be389
2 changed files with 9 additions and 1 deletions

View File

@ -455,7 +455,11 @@ int retro_read_file(const char *path, void **buf, ssize_t *len)
if (!file)
{
#if __STDC_VERSION__ >= 199901L
fprintf(stderr, "%s: Failed to open %s: %s\n", __FUNCTION__, path, strerror(errno));
#else
fprintf(stderr, "Failed to open %s: %s\n", path, strerror(errno));
#endif
goto error;
}
@ -476,7 +480,11 @@ int retro_read_file(const char *path, void **buf, ssize_t *len)
ret = retro_fread(file, content_buf, content_buf_size);
if (ret < 0)
{
#if __STDC_VERSION__ >= 199901L
fprintf(stderr, "%s: Failed to read %s: %s\n", __FUNCTION__, path, strerror(errno));
#else
fprintf(stderr, "Failed to read %s: %s\n", path, strerror(errno));
#endif
goto error;
}

View File

@ -1426,7 +1426,7 @@ enum
{
ACTION_OK_NETWORK_CORE_CONTENT_LIST = 0,
ACTION_OK_NETWORK_CORE_UPDATER_LIST,
ACTION_OK_NETWORK_LAKKA_LIST,
ACTION_OK_NETWORK_LAKKA_LIST
};
static int generic_action_ok_network(const char *path,