diff options
author | Dave Chapman <dave@dchapman.com> | 2005-02-19 11:50:53 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-02-19 11:50:53 +0000 |
commit | 8243127dc4986bbd3225cb090fcc0c290fb87937 (patch) | |
tree | b694bccbdf6bed516b01cf8a536cc6d3b0670fdb /firmware/include | |
parent | 9f0d4a1f6513cf148344548660f8cf182baa0d2e (diff) | |
download | rockbox-8243127dc4986bbd3225cb090fcc0c290fb87937.tar.gz rockbox-8243127dc4986bbd3225cb090fcc0c290fb87937.zip |
Add an labs() macro - needed by Tremor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6014 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/include/stdlib.h b/firmware/include/stdlib.h index 44aba49a55..0074fe65e5 100644 --- a/firmware/include/stdlib.h +++ b/firmware/include/stdlib.h | |||
@@ -36,6 +36,7 @@ void srand(unsigned int seed); | |||
36 | int rand(void); | 36 | int rand(void); |
37 | 37 | ||
38 | #define abs(x) ((x)>0?(x):-(x)) | 38 | #define abs(x) ((x)>0?(x):-(x)) |
39 | #define labs(x) abs(x) | ||
39 | 40 | ||
40 | #ifdef SIMULATOR | 41 | #ifdef SIMULATOR |
41 | void exit(int status); | 42 | void exit(int status); |