summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2009-08-13 20:02:31 +0000
committerMohamed Tarek <mt@rockbox.org>2009-08-13 20:02:31 +0000
commit272954954cf53505655a95ff6b54b877920cfd98 (patch)
tree4cb63d01f162a24e2cbb033eea06df6de906bd6c /apps/codecs
parente98c198fd8ffd62dfa7b4d388b4fcf6c90b966e0 (diff)
Modify the mdct library to enable using it outside rockbox - No functional changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22295 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/lib/codeclib_misc.h4
-rw-r--r--apps/codecs/lib/mdct2.c2
-rw-r--r--apps/codecs/lib/mdct2.h3
3 files changed, 9 insertions, 0 deletions
diff --git a/apps/codecs/lib/codeclib_misc.h b/apps/codecs/lib/codeclib_misc.h
index 5103ee8518..f522d33544 100644
--- a/apps/codecs/lib/codeclib_misc.h
+++ b/apps/codecs/lib/codeclib_misc.h
@@ -34,6 +34,10 @@
#ifndef _V_WIDE_MATH
#define _V_WIDE_MATH
+#ifndef ROCKBOX
+#include <inttypes.h>
+#endif /* ROCKBOX */
+
#ifndef _LOW_ACCURACY_
/* 64 bit multiply */
/* #include <sys/types.h> */
diff --git a/apps/codecs/lib/mdct2.c b/apps/codecs/lib/mdct2.c
index 7c448e1a01..6d9168804c 100644
--- a/apps/codecs/lib/mdct2.c
+++ b/apps/codecs/lib/mdct2.c
@@ -37,7 +37,9 @@
#include "mdct2.h"
#include "mdct_lookup.h"
+#ifdef ROCKBOX
#include <codecs/lib/codeclib.h>
+#endif /* ROCKBOX */
#if defined(CPU_ARM) && CONFIG_CPU != S3C2440
/* C code is faster on S3C2440 */
diff --git a/apps/codecs/lib/mdct2.h b/apps/codecs/lib/mdct2.h
index ba0f12972e..3c25e03093 100644
--- a/apps/codecs/lib/mdct2.h
+++ b/apps/codecs/lib/mdct2.h
@@ -28,7 +28,10 @@
# //define LOOKUP_T const ogg_int32_t
#endif
+#ifdef ROCKBOX
#include <codecs.h>
+#endif /* ROCKBOX */
+
#include "asm_arm.h"
#include "asm_mcf5249.h"
#include "codeclib_misc.h"