changeset 18627:c372b7e6669b

Include float.h before lisp.h.
author Richard M. Stallman <rms@gnu.org>
date Sat, 05 Jul 1997 03:27:25 +0000
parents d3d968d0773a
children 61f38e629f6b
files src/data.c src/doprnt.c src/floatfns.c
diffstat 3 files changed, 16 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/data.c	Sat Jul 05 03:19:16 1997 +0000
+++ b/src/data.c	Sat Jul 05 03:27:25 1997 +0000
@@ -22,6 +22,14 @@
 #include <signal.h>
 
 #include <config.h>
+
+/* Put this before lisp.h so that lisp.h can define DBL_DIG if not defined.  */
+#ifdef LISP_FLOAT_TYPE
+#ifdef STDC_HEADERS
+#include <float.h>
+#endif
+#endif
+
 #include "lisp.h"
 #include "puresize.h"
 #include "charset.h"
@@ -36,7 +44,6 @@
 #ifdef LISP_FLOAT_TYPE
 
 #ifdef STDC_HEADERS
-#include <float.h>
 #include <stdlib.h>
 #endif
 
--- a/src/doprnt.c	Sat Jul 05 03:19:16 1997 +0000
+++ b/src/doprnt.c	Sat Jul 05 03:27:25 1997 +0000
@@ -24,12 +24,13 @@
 #include <config.h>
 #include <stdio.h>
 #include <ctype.h>
-#include "lisp.h"
 
 #if STDC_HEADERS
 #include <float.h>
 #endif
 
+#include "lisp.h"
+
 #ifndef DBL_MAX_10_EXP
 #define DBL_MAX_10_EXP 308 /* IEEE double */
 #endif
--- a/src/floatfns.c	Sat Jul 05 03:19:16 1997 +0000
+++ b/src/floatfns.c	Sat Jul 05 03:27:25 1997 +0000
@@ -47,15 +47,17 @@
 #include <signal.h>
 
 #include <config.h>
+
+/* Put this before lisp.h so that lisp.h can define DBL_DIG if not defined.  */
+#if STDC_HEADERS
+#include <float.h>
+#endif
+
 #include "lisp.h"
 #include "syssignal.h"
 
 #ifdef LISP_FLOAT_TYPE
 
-#if STDC_HEADERS
-#include <float.h>
-#endif
-
 /* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */
 #ifndef IEEE_FLOATING_POINT
 #if (FLT_RADIX == 2 && FLT_MANT_DIG == 24 \