From 7617aba98c430c925ae133c029d2ab9f570e95b5 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Tue, 27 Mar 2012 11:06:46 +0200 Subject: [PATCH] abs() is part of C89. --- h/mh.h | 4 ---- sbr/dtime.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/h/mh.h b/h/mh.h index 6a5cf9f..8d698f4 100644 --- a/h/mh.h +++ b/h/mh.h @@ -250,10 +250,6 @@ extern int msg_count; /* m_getfld() indicators (That's a hack!) */ # define min(a,b) ((a) < (b) ? (a) : (b)) #endif -#ifndef abs -# define abs(a) ((a) > 0 ? (a) : -(a)) -#endif - /* ** GLOBAL VARIABLES */ diff --git a/sbr/dtime.c b/sbr/dtime.c index 48e13db..1273112 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -15,10 +15,6 @@ extern long timezone; #endif -#ifndef abs -# define abs(a) (a >= 0 ? a : -a) -#endif - /* ** The number of days in the year, accounting for leap years */ -- 1.7.10.4