diff options
Diffstat (limited to 'src/stdlib/llabs.c')
| -rw-r--r-- | src/stdlib/llabs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/stdlib/llabs.c b/src/stdlib/llabs.c index 9bf435bd..e60e34b5 100644 --- a/src/stdlib/llabs.c +++ b/src/stdlib/llabs.c @@ -1,12 +1,13 @@ -#if 0 - #include <stdlib.h> #include <limits.h> +#include "_stdlib.h" /** absolute value **/ long long int llabs(long long int j) { + SIGNAL_SAFE(0); + if (j == LLONG_MIN) { /* undefined */ return LLONG_MIN; @@ -24,6 +25,3 @@ UNDEFINED(ABS(ARGUMENT(j)) cannot be represented RETURN_SUCCESS(ABS(ARGUMENT(j)) STDC(199901) */ - - -#endif |
