CXX_BUILD buildfix

This commit is contained in:
twinaphex 2017-05-14 03:29:26 +02:00
parent e5ed82858f
commit c78ce113b4
2 changed files with 8 additions and 6 deletions

View File

@ -2694,6 +2694,10 @@ typedef struct
static int cheevos_iterate(coro_t* coro) static int cheevos_iterate(coro_t* coro)
{ {
ssize_t num_read = 0;
size_t to_read = 4096;
uint8_t *buffer = NULL;
const char *end = NULL;
enum enum
{ {
/* Negative values because CORO_SUB generates positive values */ /* Negative values because CORO_SUB generates positive values */
@ -2802,9 +2806,7 @@ static int cheevos_iterate(coro_t* coro)
for (;;) for (;;)
{ {
uint8_t *buffer = (uint8_t*)DATA + LEN; buffer = (uint8_t*)DATA + LEN;
size_t to_read = 4096;
ssize_t num_read;
if (to_read > COUNT) if (to_read > COUNT)
to_read = COUNT; to_read = COUNT;
@ -2839,7 +2841,7 @@ static int cheevos_iterate(coro_t* coro)
while (EXT) while (EXT)
{ {
unsigned hash; unsigned hash;
const char *end = strchr(EXT, '|'); end = strchr(EXT, '|');
if (end) if (end)
{ {

View File

@ -386,7 +386,7 @@ static bool audio_mixer_play_ogg(
voice->types.ogg.resampler = resamp; voice->types.ogg.resampler = resamp;
voice->types.ogg.resampler_data = resampler_data; voice->types.ogg.resampler_data = resampler_data;
voice->types.ogg.buffer = ogg_buffer; voice->types.ogg.buffer = (float*)ogg_buffer;
voice->types.ogg.buf_samples = samples; voice->types.ogg.buf_samples = samples;
voice->types.ogg.ratio = ratio; voice->types.ogg.ratio = ratio;
voice->types.ogg.stream = stb_vorbis; voice->types.ogg.stream = stb_vorbis;