summaryrefslogtreecommitdiff
path: root/firmware
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
parent9f0d4a1f6513cf148344548660f8cf182baa0d2e (diff)
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')
-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);
int rand(void);
#define abs(x) ((x)>0?(x):-(x))
+#define labs(x) abs(x)
#ifdef SIMULATOR
void exit(int status);