diff options
author | Dave Chapman <dave@dchapman.com> | 2008-07-19 08:41:21 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-07-19 08:41:21 +0000 |
commit | ed2936ae704976fc21ff0e6834ddb78f566d80bb (patch) | |
tree | e0d467cf0345b2eff89410567cc0d0ee98ae8224 | |
parent | cf369575bc4ec21d456b00ed15f474c8c9af3c75 (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
-rw-r--r-- | apps/codecs/libffmpegFLAC/Makefile.test | 2 | ||||
-rw-r--r-- | apps/codecs/libffmpegFLAC/tables.c | 4 |
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 */ |