diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2007-10-13 12:40:15 +0000 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2007-10-13 12:40:15 +0000 |
| commit | 555b10b098c1f9a0450e385d291386caae1dda4f (patch) | |
| tree | 9d3ccb0b0deed3cc88146a7a4af8bd827d2f6e31 /src/lisp.h | |
| parent | 71d00ce4ae4b180c784879beaff9bafd81c29989 (diff) | |
| download | emacs-555b10b098c1f9a0450e385d291386caae1dda4f.tar.gz | |
(eabs): Rename from `abs'. All callers changed.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lisp.h b/src/lisp.h index 55ca36d5c61..70329a07764 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3379,9 +3379,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)) +/* We used to use `abs', but that clashes with system headers on some + platforms, and using a name reserved by Standard C is a bad idea + anyway. */ +#if !defined(eabs) +#define eabs(x) ((x) < 0 ? -(x) : (x)) #endif /* Return a fixnum or float, depending on whether VAL fits in a Lisp |
