mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 15:27:41 +00:00
(7zip/rzlib) Fix no previous prototypes for function warnings
This commit is contained in:
parent
5279a161de
commit
9eabdc0dcc
3
deps/7zip/7zCrcOpt.c
vendored
3
deps/7zip/7zCrcOpt.c
vendored
@ -7,6 +7,9 @@
|
||||
|
||||
#define CRC_UPDATE_BYTE_2(crc, b) (table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
|
||||
|
||||
UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
|
||||
UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
|
||||
|
||||
UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table)
|
||||
{
|
||||
const Byte *p = (const Byte *)data;
|
||||
|
3
deps/7zip/7zIn.c
vendored
3
deps/7zip/7zIn.c
vendored
@ -14,6 +14,9 @@ Byte k7zSignature[k7zSignatureSize] = {'7', 'z', 0xBC, 0xAF, 0x27, 0x1C};
|
||||
#define NUM_FOLDER_CODERS_MAX 32
|
||||
#define NUM_CODER_STREAMS_MAX 32
|
||||
|
||||
void SzFolder_Free(CSzFolder *p, ISzAlloc *alloc);
|
||||
int SzFolder_FindBindPairForOutStream(CSzFolder *p, UInt32 outStreamIndex);
|
||||
|
||||
void SzCoderInfo_Init(CSzCoderInfo *p)
|
||||
{
|
||||
Buf_Init(&p->Props);
|
||||
|
4
deps/7zip/CpuArch.c
vendored
4
deps/7zip/CpuArch.c
vendored
@ -1,6 +1,8 @@
|
||||
#include "CpuArch.h"
|
||||
|
||||
Bool CPU_Is_InOrder()
|
||||
Bool CPU_Is_InOrder(void);
|
||||
|
||||
Bool CPU_Is_InOrder(void)
|
||||
{
|
||||
return False;
|
||||
}
|
||||
|
2
deps/7zip/LzmaDec.c
vendored
2
deps/7zip/LzmaDec.c
vendored
@ -682,6 +682,8 @@ static void LzmaDec_InitRc(CLzmaDec *p, const Byte *data)
|
||||
p->needFlush = 0;
|
||||
}
|
||||
|
||||
void LzmaDec_InitDicAndState(CLzmaDec *p, Bool initDic, Bool initState);
|
||||
|
||||
void LzmaDec_InitDicAndState(CLzmaDec *p, Bool initDic, Bool initState)
|
||||
{
|
||||
p->needFlush = 1;
|
||||
|
4
deps/rzlib/deflate.c
vendored
4
deps/rzlib/deflate.c
vendored
@ -193,6 +193,10 @@ local const config configuration_table[10] = {
|
||||
s->head[s->hash_size-1] = NIL; \
|
||||
zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
|
||||
|
||||
int ZEXPORT deflateResetKeep (z_streamp strm);
|
||||
|
||||
int ZEXPORT deflatePending (z_streamp strm, unsigned *pending, int *bits);
|
||||
|
||||
/* ========================================================================= */
|
||||
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
|
||||
{
|
||||
|
2
deps/rzlib/gzread.c
vendored
2
deps/rzlib/gzread.c
vendored
@ -13,6 +13,8 @@ local int gz_decomp OF((gz_statep));
|
||||
local int gz_fetch OF((gz_statep));
|
||||
local int gz_skip OF((gz_statep, z_off64_t));
|
||||
|
||||
int ZEXPORT gzgetc_(gzFile file);
|
||||
|
||||
/* Use read() to load a buffer -- return -1 on error, otherwise 0. Read from
|
||||
state->fd, and update state->eof, state->err, and state->msg as appropriate.
|
||||
This function needs to loop on read(), since read() is not guaranteed to
|
||||
|
2
deps/rzlib/gzwrite.c
vendored
2
deps/rzlib/gzwrite.c
vendored
@ -10,6 +10,8 @@ local int gz_init OF((gz_statep));
|
||||
local int gz_comp OF((gz_statep, int));
|
||||
local int gz_zero OF((gz_statep, z_off64_t));
|
||||
|
||||
int ZEXPORTVA gzvprintf(gzFile file, const char *format, va_list va);
|
||||
|
||||
/* Initialize state for writing a gzip file. Mark initialization by setting
|
||||
state->size to non-zero. Return -1 on failure or 0 on success. */
|
||||
local int gz_init(gz_statep state)
|
||||
|
4
deps/rzlib/inflate.c
vendored
4
deps/rzlib/inflate.c
vendored
@ -105,6 +105,10 @@ local int updatewindow OF((z_streamp strm, const unsigned char FAR *end,
|
||||
local unsigned syncsearch OF((unsigned FAR *have, const unsigned char FAR *buf,
|
||||
unsigned len));
|
||||
|
||||
int ZEXPORT inflateResetKeep(z_streamp strm);
|
||||
|
||||
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength);
|
||||
|
||||
int ZEXPORT inflateResetKeep(z_streamp strm)
|
||||
{
|
||||
struct inflate_state FAR *state;
|
||||
|
Loading…
Reference in New Issue
Block a user