# HG changeset patch # User Glenn Morris # Date 1190513063 0 # Node ID bc91e8a1fafca892746ae4571ed6663b0d8c5b23 # Parent f98481def394352be2d374628e6e002308446306 Johannes Weiner (abs): Define if unknown. diff -r f98481def394 -r bc91e8a1fafc src/lisp.h --- 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. */