summaryrefslogtreecommitdiff
path: root/src/libFLAC
diff options
context:
space:
mode:
Diffstat (limited to 'src/libFLAC')
-rw-r--r--src/libFLAC/include/private/bitmath.h1
-rw-r--r--src/libFLAC/lpc.c3
-rw-r--r--src/libFLAC/stream_decoder.c4
3 files changed, 7 insertions, 1 deletions
diff --git a/src/libFLAC/include/private/bitmath.h b/src/libFLAC/include/private/bitmath.h
index 4e60f78b..05daba1e 100644
--- a/src/libFLAC/include/private/bitmath.h
+++ b/src/libFLAC/include/private/bitmath.h
@@ -36,6 +36,7 @@
/* for CHAR_BIT */
#include <limits.h>
+#include "share/compat.h"
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
#include <intrin.h> /* for _BitScanReverse* */
diff --git a/src/libFLAC/lpc.c b/src/libFLAC/lpc.c
index 66a68999..5f1ff998 100644
--- a/src/libFLAC/lpc.c
+++ b/src/libFLAC/lpc.c
@@ -34,9 +34,10 @@
#endif
#include <math.h>
-#include <inttypes.h>
+
#include "FLAC/assert.h"
#include "FLAC/format.h"
+#include "share/compat.h"
#include "private/bitmath.h"
#include "private/lpc.h"
#include "private/macros.h"
diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c
index 789db1b6..ec36510f 100644
--- a/src/libFLAC/stream_decoder.c
+++ b/src/libFLAC/stream_decoder.c
@@ -55,7 +55,11 @@
/* technically this should be in an "export.c" but this is convenient enough */
+#ifdef FLAC_API_SUPPORTS_OGG_FLAC
FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC = FLAC__HAS_OGG ;
+#else
+FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC = 0 ;
+#endif
/***********************************************************************