From b762a20ace7c7771f87f63478bcee3cf51268cff Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Wed, 3 May 2017 18:37:12 +1000 Subject: [PATCH] Fix missing SIZE_MAX definition on Android --- include/share/compat.h | 4 ++++ src/libFLAC/md5.c | 1 + src/libFLAC/memory.c | 1 + 3 files changed, 6 insertions(+) diff --git a/include/share/compat.h b/include/share/compat.h index 2ad40fb9..b8727621 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -175,6 +175,10 @@ #define flac_fstat fstat #endif +#ifdef ANDROID +#include +#endif + #ifndef M_LN2 #define M_LN2 0.69314718055994530942 #endif diff --git a/src/libFLAC/md5.c b/src/libFLAC/md5.c index d395e09e..09933d7e 100644 --- a/src/libFLAC/md5.c +++ b/src/libFLAC/md5.c @@ -7,6 +7,7 @@ #include "private/md5.h" #include "share/alloc.h" +#include "share/compat.h" #include "share/endswap.h" /* diff --git a/src/libFLAC/memory.c b/src/libFLAC/memory.c index 3dae9d23..4d320a43 100644 --- a/src/libFLAC/memory.c +++ b/src/libFLAC/memory.c @@ -40,6 +40,7 @@ #include "private/memory.h" #include "FLAC/assert.h" +#include "share/compat.h" #include "share/alloc.h" void *FLAC__memory_alloc_aligned(size_t bytes, void **aligned_address)