Update libretro-common/utils

This commit is contained in:
twinaphex 2016-09-21 12:33:42 +02:00
parent b548362869
commit 84d8d97ea5
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;
} }