Add an labs() macro - needed by Tremor

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6014 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-02-19 11:50:53 +00:00
parent 9f0d4a1f65
commit 8243127dc4

View file

@ -36,6 +36,7 @@ void srand(unsigned int seed);
int rand(void); int rand(void);
#define abs(x) ((x)>0?(x):-(x)) #define abs(x) ((x)>0?(x):-(x))
#define labs(x) abs(x)
#ifdef SIMULATOR #ifdef SIMULATOR
void exit(int status); void exit(int status);