Mercurial > emacs
changeset 84804:bc91e8a1fafc
Johannes Weiner <hannes at saeurebad.de>
(abs): Define if unknown.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 23 Sep 2007 02:04:23 +0000 |
parents | f98481def394 |
children | fe67aa3553d9 |
files | src/lisp.h |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lisp.h Sun Sep 23 02:03:36 2007 +0000 +++ b/src/lisp.h Sun Sep 23 02:04:23 2007 +0000 @@ -3399,6 +3399,11 @@ #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. */