mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
libc: Correct definition of labs()' and add llabs()
Change-Id: Ie1f4a5660ef17ea3ba383441f257ad7ee02c2061
This commit is contained in:
parent
e1bed147a3
commit
8dc42711b4
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ int rand(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define abs(x) ((int)ABS(x))
|
#define abs(x) ((int)ABS(x))
|
||||||
#define labs(x) ((long)abs(x))
|
#define labs(x) ((long)ABS(x))
|
||||||
|
#define llabs(x) ((long long)ABS(x))
|
||||||
|
|
||||||
#ifdef SIMULATOR
|
#ifdef SIMULATOR
|
||||||
void exit(int status);
|
void exit(int status);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue