diff src/lisp.h @ 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 bccebab2430e
children d0d527210b0c a0e466c4d599
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