Fix missing SIZE_MAX definition on Android
authorErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 3 May 2017 08:37:12 +0000 (18:37 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 3 May 2017 08:37:12 +0000 (18:37 +1000)
include/share/compat.h
src/libFLAC/md5.c
src/libFLAC/memory.c

index 2ad40fb..b872762 100644 (file)
 #define flac_fstat fstat
 #endif
 
+#ifdef ANDROID
+#include <limits.h>
+#endif
+
 #ifndef M_LN2
 #define M_LN2 0.69314718055994530942
 #endif
index d395e09..09933d7 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "private/md5.h"
 #include "share/alloc.h"
+#include "share/compat.h"
 #include "share/endswap.h"
 
 /*
index 3dae9d2..4d320a4 100644 (file)
@@ -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)