]> code.delx.au - gnu-emacs/commitdiff
[hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions.
authorRichard M. Stallman <rms@gnu.org>
Sat, 9 Oct 1993 21:51:36 +0000 (21:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 9 Oct 1993 21:51:36 +0000 (21:51 +0000)
src/floatfns.c

index da91b97f9ea2f0ce03ebee9d6944214bf5f62f5e..5cc499979f8f8592448670ab0d0d2de7223c6057 100644 (file)
@@ -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