(OSX PPC) Build fixes

This commit is contained in:
neville 2015-02-23 01:32:50 +01:00
parent 0752a114f3
commit a7fbfc0c00
3 changed files with 6 additions and 3 deletions

View File

@ -123,13 +123,15 @@ int database_info_write_rdl_iterate(database_info_rdl_handle_t *dbl)
ssize_t ret;
uint32_t crc, target_crc = 0;
uint8_t *ret_buf = NULL;
bool read_from = false;
int read_from = 0;
(void)target_crc;
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;
snprintf(msg, sizeof(msg), "%zu/%zu: Scanning %s...\n",

View File

@ -18,6 +18,7 @@
#ifndef DATABASE_INFO_H_
#define DATABASE_INFO_H_
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#include "libretro-db/libretrodb.h"

View File

@ -903,7 +903,7 @@ static int rarch_main_iterate_nbio_parse_free(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);
if (data && g_extern.nbio.cb)