diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-05-07 22:10:35 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-05-07 22:10:35 +0000 |
commit | 4cc0b97609a9c94abef6b4422c2c87c599776f44 (patch) | |
tree | 15be2077d74785f421845c5921a64053c8ec4ba8 /apps/codecs/dumb/include | |
parent | 2505e7bf047b65d5c8b714eb3528dc1c1e178dfd (diff) |
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.h | 14 |
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 @@ #define ABS(x) (((x) >= 0) ? (x) : (-(x))) +#if 0 /* This code serves no useful purpose for Rockbox. Possibly the trace + thing could be defined for simulator... */ + #ifdef DEBUGMODE #ifndef ASSERT @@ -105,6 +108,17 @@ #endif +#else /* 0 */ +/* disable TRACE() and ASSERT() calls */ +#define TRACE(...) +#define ASSERT(...) + +/* now fake float function to hush the compiler */ +#define pow(x,y) ((x)+(y)) +#define floor(x) x +#define log(x) (x) +#define exp(x) (x) +#endif /* 0 */ #define DUMB_ID(a,b,c,d) (((unsigned int)(a) << 24) | \ ((unsigned int)(b) << 16) | \ |