From: Richard M. Stallman Date: Sat, 9 Oct 1993 21:51:36 +0000 (+0000) Subject: [hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions. X-Git-Tag: emacs-19.34~11008 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4cd7a37326a05ff7d6a59e99fff5eccf70401e7f;p=emacs.git [hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions. --- 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 #ifndef hpux