diff options
author | Elliott Hughes <enh@google.com> | 2013-08-12 12:07:05 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-08-12 12:07:05 -0700 |
commit | aec2ffbc5a7b45368ceab3663265fbb659968fe7 (patch) | |
tree | 07719cc7acdb80e3682b9d815b6479524faf8c7b /libc/include/stdlib.h | |
parent | ee48fed51894f3db324e957058ed2ddcf23dddc7 (diff) | |
download | android_bionic-aec2ffbc5a7b45368ceab3663265fbb659968fe7.tar.gz android_bionic-aec2ffbc5a7b45368ceab3663265fbb659968fe7.tar.bz2 android_bionic-aec2ffbc5a7b45368ceab3663265fbb659968fe7.zip |
Fix our missing abs/labs/llabs/imaxabs (and imaxdiv) symbols.
Change-Id: I94c411c22634e43184445c82e7388e51fc46a8cc
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r-- | libc/include/stdlib.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index e728cb674..9fa84c1d3 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -77,17 +77,9 @@ static __inline__ double atof(const char *nptr) return (strtod(nptr, NULL)); } -static __inline__ int abs(int __n) { - return (__n < 0) ? -__n : __n; -} - -static __inline__ long labs(long __n) { - return (__n < 0L) ? -__n : __n; -} - -static __inline__ long long llabs(long long __n) { - return (__n < 0LL) ? -__n : __n; -} +extern int abs(int) __pure2; +extern long labs(long) __pure2; +extern long long llabs(long long) __pure2; extern char * realpath(const char *path, char *resolved); extern int system(const char * string); |