(OSX PPC) Build fixes
This commit is contained in:
parent
0752a114f3
commit
a7fbfc0c00
|
@ -123,13 +123,15 @@ int database_info_write_rdl_iterate(database_info_rdl_handle_t *dbl)
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
uint32_t crc, target_crc = 0;
|
uint32_t crc, target_crc = 0;
|
||||||
uint8_t *ret_buf = NULL;
|
uint8_t *ret_buf = NULL;
|
||||||
bool read_from = false;
|
int read_from = 0;
|
||||||
|
|
||||||
(void)target_crc;
|
(void)target_crc;
|
||||||
|
|
||||||
read_from = read_file(name, (void**)&ret_buf, &ret);
|
read_from = read_file(name, (void**)&ret_buf, &ret);
|
||||||
|
|
||||||
if (!read_from || ret <= 0)
|
if (read_from != 1)
|
||||||
|
return 0;
|
||||||
|
if (ret <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
snprintf(msg, sizeof(msg), "%zu/%zu: Scanning %s...\n",
|
snprintf(msg, sizeof(msg), "%zu/%zu: Scanning %s...\n",
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#ifndef DATABASE_INFO_H_
|
#ifndef DATABASE_INFO_H_
|
||||||
#define DATABASE_INFO_H_
|
#define DATABASE_INFO_H_
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
#include "libretro-db/libretrodb.h"
|
#include "libretro-db/libretrodb.h"
|
||||||
|
|
|
@ -903,7 +903,7 @@ static int rarch_main_iterate_nbio_parse_free(void)
|
||||||
|
|
||||||
static int rarch_main_iterate_nbio_parse(void)
|
static int rarch_main_iterate_nbio_parse(void)
|
||||||
{
|
{
|
||||||
size_t len;
|
size_t len = 0;
|
||||||
char *data = nbio_get_ptr(g_extern.nbio.handle, &len);
|
char *data = nbio_get_ptr(g_extern.nbio.handle, &len);
|
||||||
|
|
||||||
if (data && g_extern.nbio.cb)
|
if (data && g_extern.nbio.cb)
|
||||||
|
|
Loading…
Reference in New Issue