From 096e8667db901bfa509d981c319048ccb64e948c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sun, 23 Sep 2007 02:04:23 +0000 Subject: [PATCH] Johannes Weiner (abs): Define if unknown. --- src/lisp.h | 5 +++++ 1 file changed, 5 insertions(+) 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. */ -- 2.39.5