changeset 4860:ff23fe23f58c

[hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions.
author Richard M. Stallman <rms@gnu.org>
date Wed, 20 Oct 1993 02:47:12 +0000
parents aa1a42c0b779
children 924486090b27
files src/data.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/data.c	Tue Oct 19 03:26:37 1993 +0000
+++ b/src/data.c	Wed Oct 20 02:47:12 1993 +0000
@@ -31,9 +31,21 @@
 #include "syssignal.h"
 
 #ifdef LISP_FLOAT_TYPE
+
 #ifdef STDC_HEADERS
 #include <stdlib.h>
 #endif
+
+/* 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
+   here, in floatfns.c, and in lread.c.
+   These macros prevent the name conflict.  */
+#if defined (HPUX) && !defined (HPUX8)
+#define _MAXLDBL data_c_maxldbl
+#define _NMAXLDBL data_c_nmaxldbl
+#endif
+
 #include <math.h>
 #endif /* LISP_FLOAT_TYPE */