mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Fix more C89 fails.
This commit is contained in:
parent
97f10e4a64
commit
d333bd0f77
@ -123,7 +123,7 @@ OBJ += frontend/frontend.o \
|
||||
libretro-common/string/stdstring.o \
|
||||
dir_list_special.o \
|
||||
file_ops.o \
|
||||
libretro-common/file//nbio/nbio_stdio.o \
|
||||
libretro-common/file/nbio/nbio_stdio.o \
|
||||
libretro-common/file/file_path.o \
|
||||
file_path_special.o \
|
||||
libretro-common/hash/rhash.o \
|
||||
|
@ -60,6 +60,7 @@ static void alsa_worker_thread(void *data)
|
||||
{
|
||||
size_t avail;
|
||||
size_t fifo_size;
|
||||
snd_pcm_sframes_t frames;
|
||||
slock_lock(alsa->fifo_lock);
|
||||
avail = fifo_read_avail(alsa->buffer);
|
||||
fifo_size = min(alsa->period_size, avail);
|
||||
@ -70,8 +71,7 @@ static void alsa_worker_thread(void *data)
|
||||
/* If underrun, fill rest with silence. */
|
||||
memset(buf + fifo_size, 0, alsa->period_size - fifo_size);
|
||||
|
||||
snd_pcm_sframes_t frames = snd_pcm_writei(
|
||||
alsa->pcm, buf, alsa->period_frames);
|
||||
frames = snd_pcm_writei(alsa->pcm, buf, alsa->period_frames);
|
||||
|
||||
if (frames == -EPIPE || frames == -EINTR ||
|
||||
frames == -ESTRPIPE)
|
||||
|
4
deps/zlib/ioapi.h
vendored
4
deps/zlib/ioapi.h
vendored
@ -23,8 +23,8 @@
|
||||
|
||||
#if (!defined(_WIN32)) && (!defined(WIN32))
|
||||
|
||||
// Linux needs this to support file operation on files larger then 4+GB
|
||||
// But might need better if/def to select just the platforms that needs them.
|
||||
/* Linux needs this to support file operation on files larger then 4+GB */
|
||||
/* But might need better if/def to select just the platforms that needs them. */
|
||||
|
||||
#ifndef __USE_FILE_OFFSET64
|
||||
#define __USE_FILE_OFFSET64
|
||||
|
6
deps/zlib/unzip.c
vendored
6
deps/zlib/unzip.c
vendored
@ -960,7 +960,7 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file,
|
||||
if (unz64local_getLong(&s->z_filefunc, s->filestream,&file_info.external_fa) != UNZ_OK)
|
||||
err=UNZ_ERRNO;
|
||||
|
||||
// relative offset of local header
|
||||
/* relative offset of local header */
|
||||
if (unz64local_getLong(&s->z_filefunc, s->filestream,&uL) != UNZ_OK)
|
||||
err=UNZ_ERRNO;
|
||||
file_info_internal.offset_curfile = uL;
|
||||
@ -983,7 +983,7 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file,
|
||||
lSeek -= uSizeRead;
|
||||
}
|
||||
|
||||
// Read extrafield
|
||||
/* Read extrafield */
|
||||
if ((err==UNZ_OK) && (extraField!=NULL))
|
||||
{
|
||||
ZPOS64_T uSizeRead ;
|
||||
@ -1014,7 +1014,7 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file,
|
||||
{
|
||||
uLong acc = 0;
|
||||
|
||||
// since lSeek now points to after the extra field we need to move back
|
||||
/* since lSeek now points to after the extra field we need to move back */
|
||||
lSeek -= file_info.size_file_extra;
|
||||
|
||||
if (lSeek!=0)
|
||||
|
@ -87,8 +87,8 @@ int libretrodb_create(FILE *fp, libretrodb_value_provider value_provider,
|
||||
off_t root;
|
||||
libretrodb_metadata_t md;
|
||||
uint64_t item_count = 0;
|
||||
struct rmsgpack_dom_value item = {};
|
||||
libretrodb_header_t header = {};
|
||||
struct rmsgpack_dom_value item = {0};
|
||||
libretrodb_header_t header = {0};
|
||||
|
||||
memcpy(header.magic_number, MAGIC_NUMBER, sizeof(MAGIC_NUMBER)-1);
|
||||
root = flseek(fp, 0, SEEK_CUR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user