mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Update libretro-common/utils
This commit is contained in:
parent
b548362869
commit
84d8d97ea5
@ -59,7 +59,7 @@ CC := $(compiler)
|
||||
CXX := $(subst CC,++,$(compiler))
|
||||
flags := -fPIC $(extra_flags) -I../../libretro-common/include
|
||||
asflags := -fPIC $(extra_flags)
|
||||
LDFLAGS := -lz
|
||||
LDFLAGS :=
|
||||
flags += -std=c99 -DMD5_BUILD_UTILITY
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <compat/zlib.h>
|
||||
#include <encodings/crc32.h>
|
||||
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
@ -18,7 +18,7 @@ int main(int argc, const char* argv[])
|
||||
|
||||
if (file)
|
||||
{
|
||||
uLong crc = crc32(0L, Z_NULL, 0 );
|
||||
uLong crc = encoding_crc32(0L, Z_NULL, 0 );
|
||||
|
||||
for (;;)
|
||||
{
|
||||
@ -27,7 +27,7 @@ int main(int argc, const char* argv[])
|
||||
int numread = fread((void*)buffer, 1, sizeof(buffer), file);
|
||||
|
||||
if (numread > 0)
|
||||
crc = crc32( crc, buffer, numread );
|
||||
crc = encoding_crc32( crc, buffer, numread );
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user