summaryrefslogtreecommitdiff
path: root/apps/codecs/libffmpegFLAC
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2008-07-19 08:41:21 +0000
committerDave Chapman <dave@dchapman.com>2008-07-19 08:41:21 +0000
commited2936ae704976fc21ff0e6834ddb78f566d80bb (patch)
treee0d467cf0345b2eff89410567cc0d0ee98ae8224 /apps/codecs/libffmpegFLAC
parentcf369575bc4ec21d456b00ed15f474c8c9af3c75 (diff)
Make the standalone FLAC test program work again (compile with make -f Makefile.test).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18093 a1c6a512-1295-4272-9138-f99709370657
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 */