From: markus schnalke Date: Tue, 27 Mar 2012 09:06:46 +0000 (+0200) Subject: abs() is part of C89. X-Git-Tag: mmh-thesis-end~153 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=7617aba98c430c925ae133c029d2ab9f570e95b5;p=mmh abs() is part of C89. --- 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 */