summaryrefslogtreecommitdiff
path: root/apps/codecs/libffmpegFLAC
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libffmpegFLAC')
-rw-r--r--apps/codecs/libffmpegFLAC/Makefile.test2
-rw-r--r--apps/codecs/libffmpegFLAC/tables.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/codecs/libffmpegFLAC/Makefile.test b/apps/codecs/libffmpegFLAC/Makefile.test
index a6850e8246..0bd9e521e4 100644
--- a/apps/codecs/libffmpegFLAC/Makefile.test
+++ b/apps/codecs/libffmpegFLAC/Makefile.test
@@ -1,6 +1,6 @@
# Simple Makefile for standalone testing of decoder
-OBJS=main.o decoder.o bitstream.o
+OBJS=main.o decoder.o bitstream.o tables.o
CFLAGS=-O2 -Wall -DBUILD_STANDALONE
CC=gcc
diff --git a/apps/codecs/libffmpegFLAC/tables.c b/apps/codecs/libffmpegFLAC/tables.c
index 8422bf75e1..5dbb54e11e 100644
--- a/apps/codecs/libffmpegFLAC/tables.c
+++ b/apps/codecs/libffmpegFLAC/tables.c
@@ -1,4 +1,8 @@
+#ifdef BUILD_STANDALONE
+#define ICONST_ATTR
+#else
#include "../codec.h"
+#endif
#include <inttypes.h>
/* From ffmpeg - libavutil/common.h */