aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert1997-10-23 04:29:36 +0000
committerPaul Eggert1997-10-23 04:29:36 +0000
commit2f2615421a621debb889339e2b9e0178ec89ed1a (patch)
tree4253e290eb2e72797f19e18cc4df13dd82007590 /src
parentf356c3fb99e8653757a9313f23d2ef45f7df5ac8 (diff)
downloademacs-2f2615421a621debb889339e2b9e0178ec89ed1a.tar.gz
emacs-2f2615421a621debb889339e2b9e0178ec89ed1a.zip
No need to include <float.h> before "lisp.h",
as the latter no longer defines DBL_DIG.
Diffstat (limited to 'src')
-rw-r--r--src/data.c9
-rw-r--r--src/floatfns.c10
2 files changed, 5 insertions, 14 deletions
diff --git a/src/data.c b/src/data.c
index 8a3d7191f07..2479dc25106 100644
--- a/src/data.c
+++ b/src/data.c
@@ -22,14 +22,6 @@ Boston, MA 02111-1307, USA. */
22#include <signal.h> 22#include <signal.h>
23 23
24#include <config.h> 24#include <config.h>
25
26/* Put this before lisp.h so that lisp.h can define DBL_DIG if not defined. */
27#ifdef LISP_FLOAT_TYPE
28#ifdef STDC_HEADERS
29#include <float.h>
30#endif
31#endif
32
33#include "lisp.h" 25#include "lisp.h"
34#include "puresize.h" 26#include "puresize.h"
35#include "charset.h" 27#include "charset.h"
@@ -45,6 +37,7 @@ Boston, MA 02111-1307, USA. */
45 37
46#ifdef STDC_HEADERS 38#ifdef STDC_HEADERS
47#include <stdlib.h> 39#include <stdlib.h>
40#include <float.h>
48#endif 41#endif
49 42
50/* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */ 43/* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */
diff --git a/src/floatfns.c b/src/floatfns.c
index 6c8aece417d..562ec045c19 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -47,17 +47,15 @@ Boston, MA 02111-1307, USA. */
47#include <signal.h> 47#include <signal.h>
48 48
49#include <config.h> 49#include <config.h>
50
51/* Put this before lisp.h so that lisp.h can define DBL_DIG if not defined. */
52#if STDC_HEADERS
53#include <float.h>
54#endif
55
56#include "lisp.h" 50#include "lisp.h"
57#include "syssignal.h" 51#include "syssignal.h"
58 52
59#ifdef LISP_FLOAT_TYPE 53#ifdef LISP_FLOAT_TYPE
60 54
55#if STDC_HEADERS
56#include <float.h>
57#endif
58
61/* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */ 59/* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */
62#ifndef IEEE_FLOATING_POINT 60#ifndef IEEE_FLOATING_POINT
63#if (FLT_RADIX == 2 && FLT_MANT_DIG == 24 \ 61#if (FLT_RADIX == 2 && FLT_MANT_DIG == 24 \