summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/share/compat.h4
-rw-r--r--src/libFLAC/md5.c1
-rw-r--r--src/libFLAC/memory.c1
3 files changed, 6 insertions, 0 deletions
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 <limits.h>
+#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)