changeset 85250:2acb83e611e8

(eabs): Rename from `abs'. All callers changed.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 13 Oct 2007 12:40:15 +0000
parents 668ccfb8d0e0
children 5059c82a6ddf
files src/lisp.h
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lisp.h	Sat Oct 13 12:11:14 2007 +0000
+++ b/src/lisp.h	Sat Oct 13 12:40:15 2007 +0000
@@ -3379,9 +3379,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))
+/* 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