emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.50 compile problem on Windows XP


From: Sridhar Boovaraghavan
Subject: Re: 23.0.50 compile problem on Windows XP
Date: Thu, 04 Oct 2007 14:03:34 -0400
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (windows-nt)

Thank you for looking into and diagnosing the problem. I have moved
the inclusion of <math.h> above "lisp.h" in the affected files and
here's a patch against HEAD that solves this issue.

Regards,
Sridhar

--
Index: data.c
===================================================================
RCS file: /sources/emacs/emacs/src/data.c,v
retrieving revision 1.278
diff -r1.278 data.c
26,33d25
< #include "lisp.h"
< #include "puresize.h"
< #include "charset.h"
< #include "buffer.h"
< #include "keyboard.h"
< #include "frame.h"
< #include "syssignal.h"
< #include "termhooks.h"  /* For FRAME_KBOARD reference in y-or-n-p. */
64a57,65
> #include "lisp.h"
> #include "puresize.h"
> #include "charset.h"
> #include "buffer.h"
> #include "keyboard.h"
> #include "frame.h"
> #include "syssignal.h"
> #include "termhooks.h"  /* For FRAME_KBOARD reference in y-or-n-p. */
> 
Index: floatfns.c
===================================================================
RCS file: /sources/emacs/emacs/src/floatfns.c,v
retrieving revision 1.95
diff -r1.95 floatfns.c
50,51d49
< #include "lisp.h"
< #include "syssignal.h"
78a77,79
> #include "lisp.h"
> #include "syssignal.h"
> 
Index: lread.c
===================================================================
RCS file: /sources/emacs/emacs/src/lread.c,v
retrieving revision 1.380
diff -r1.380 lread.c
30a31
> #include <math.h>
62,63d62
< #include <math.h>
< 
Index: print.c
===================================================================
RCS file: /sources/emacs/emacs/src/print.c,v
retrieving revision 1.240
diff -r1.240 print.c
25a26,38
> 
> /* 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 print_maxldbl
> #define _NMAXLDBL print_nmaxldbl
> #endif
> 
> #include <math.h>
> 
48,59d60
< /* 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 print_maxldbl
< #define _NMAXLDBL print_nmaxldbl
< #endif
< 
< #include <math.h>
< 

-- 
Sridhar Boovaraghavan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]