From 4cc0b97609a9c94abef6b4422c2c87c599776f44 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 7 May 2005 22:10:35 +0000 Subject: 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 --- apps/codecs/dumb/include/dumb.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'apps/codecs/dumb/include') 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) | \ -- cgit v1.2.3