From ae942840140e38835e562e8d235578c017d00766 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 17 Nov 2015 02:31:11 +0100 Subject: add macros for abs, labs, llabs, and imaxabs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/inttypes/imaxabs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inttypes') diff --git a/src/inttypes/imaxabs.c b/src/inttypes/imaxabs.c index 1f3b337..651452a 100644 --- a/src/inttypes/imaxabs.c +++ b/src/inttypes/imaxabs.c @@ -30,7 +30,7 @@ * @param value The integer. * @return The absolute value of the integer. */ -intmax_t imaxabs(intmax_t value) +intmax_t (imaxabs)(intmax_t value) { return value < 0 ? -value : value; } -- cgit v1.2.3-70-g09d2