From: Glenn Morris Date: Sun, 23 Sep 2007 02:04:23 +0000 (+0000) Subject: Johannes Weiner X-Git-Tag: emacs-pretest-23.0.90~10720 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=096e8667db901bfa509d981c319048ccb64e948c;p=emacs.git Johannes Weiner (abs): Define if unknown. --- diff --git a/src/lisp.h b/src/lisp.h index d5adb8f9e49..65ea46fae1f 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3399,6 +3399,11 @@ extern Lisp_Object Vdirectory_sep_char; #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b)) +/* Make sure we have abs defined */ +#if !defined(abs) +#define abs(x) ((x) < 0 ? -(x) : (x)) +#endif + /* Return a fixnum or float, depending on whether VAL fits in a Lisp fixnum. */