summaryrefslogtreecommitdiff
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-10-09 21:51:36 +0000
committerRichard M. Stallman <rms@gnu.org>1993-10-09 21:51:36 +0000
commita29785afd95091e4a0900f37444b3c26ff064e28 (patch)
treef9e734ff2e29fbd0f2ab0b0bcd4cfe357debf15a /src/floatfns.c
parent07b5705453f724743fc0522ea768f8d6723c22bc (diff)
downloademacs-a29785afd95091e4a0900f37444b3c26ff064e28.tar.gz
[hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index da91b97f9ea..5cc499979f8 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -53,6 +53,16 @@ Lisp_Object Qarith_error;
#ifdef LISP_FLOAT_TYPE
+/* Work around a problem that happens because math.h on hpux 7
+ defines two static variables--which, in Emacs, are not really static,
+ because `static' is defined as nothing. The problem is that they are
+ defined both here and in lread.c.
+ These macros prevent the name conflict. */
+#if defined (HPUX) && !defined (HPUX8)
+#define _MAXLDBL floatfns_maxldbl
+#define _NMAXLDBL floatfns_nmaxldbl
+#endif
+
#include <math.h>
#ifndef hpux