summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-02-19 11:50:53 +0000
committerDave Chapman <dave@dchapman.com>2005-02-19 11:50:53 +0000
commit8243127dc4986bbd3225cb090fcc0c290fb87937 (patch)
treeb694bccbdf6bed516b01cf8a536cc6d3b0670fdb /firmware/include
parent9f0d4a1f6513cf148344548660f8cf182baa0d2e (diff)
downloadrockbox-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.h1
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);
36int rand(void); 36int 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
41void exit(int status); 42void exit(int status);