summaryrefslogtreecommitdiff
path: root/apps/codecs/dumb/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-07 22:10:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-07 22:10:35 +0000
commit4cc0b97609a9c94abef6b4422c2c87c599776f44 (patch)
tree15be2077d74785f421845c5921a64053c8ec4ba8 /apps/codecs/dumb/include
parent2505e7bf047b65d5c8b714eb3528dc1c1e178dfd (diff)
downloadrockbox-4cc0b97609a9c94abef6b4422c2c87c599776f44.tar.gz
rockbox-4cc0b97609a9c94abef6b4422c2c87c599776f44.zip
Hush up warnings by defining away functions/macros. This should be fixed if
actual functionality is wanted (by including the proper headers and making sure rockbox provides these functions). pow(), floor(), log() and exp() just feel veeeery floatish... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6417 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/dumb/include')
-rw-r--r--apps/codecs/dumb/include/dumb.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/codecs/dumb/include/dumb.h b/apps/codecs/dumb/include/dumb.h
index 3d6d6f940d..2aae95ccce 100644
--- a/apps/codecs/dumb/include/dumb.h
+++ b/apps/codecs/dumb/include/dumb.h
@@ -83,6 +83,9 @@
83#define ABS(x) (((x) >= 0) ? (x) : (-(x))) 83#define ABS(x) (((x) >= 0) ? (x) : (-(x)))
84 84
85 85
86#if 0 /* This code serves no useful purpose for Rockbox. Possibly the trace
87 thing could be defined for simulator... */
88
86#ifdef DEBUGMODE 89#ifdef DEBUGMODE
87 90
88#ifndef ASSERT 91#ifndef ASSERT
@@ -105,6 +108,17 @@
105 108
106#endif 109#endif
107 110
111#else /* 0 */
112/* disable TRACE() and ASSERT() calls */
113#define TRACE(...)
114#define ASSERT(...)
115
116/* now fake float function to hush the compiler */
117#define pow(x,y) ((x)+(y))
118#define floor(x) x
119#define log(x) (x)
120#define exp(x) (x)
121#endif /* 0 */
108 122
109#define DUMB_ID(a,b,c,d) (((unsigned int)(a) << 24) | \ 123#define DUMB_ID(a,b,c,d) (((unsigned int)(a) << 24) | \
110 ((unsigned int)(b) << 16) | \ 124 ((unsigned int)(b) << 16) | \