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