diff options
| author | Richard M. Stallman | 1997-07-05 03:27:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-05 03:27:25 +0000 |
| commit | 523e929122415f6bad52eca72af3222c90caebcf (patch) | |
| tree | b75b5ead6f174bc6be289caa20ed9a5cbc99bf4c /src | |
| parent | c4009c1f3dca5e5e240ec732f1a617ae62c0c64c (diff) | |
| download | emacs-523e929122415f6bad52eca72af3222c90caebcf.tar.gz emacs-523e929122415f6bad52eca72af3222c90caebcf.zip | |
Include float.h before lisp.h.
Diffstat (limited to 'src')
| -rw-r--r-- | src/data.c | 9 | ||||
| -rw-r--r-- | src/doprnt.c | 3 | ||||
| -rw-r--r-- | src/floatfns.c | 10 |
3 files changed, 16 insertions, 6 deletions
diff --git a/src/data.c b/src/data.c index 5fb57407cba..f2dd58344d9 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -22,6 +22,14 @@ 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 | |||
| 25 | #include "lisp.h" | 33 | #include "lisp.h" |
| 26 | #include "puresize.h" | 34 | #include "puresize.h" |
| 27 | #include "charset.h" | 35 | #include "charset.h" |
| @@ -36,7 +44,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 36 | #ifdef LISP_FLOAT_TYPE | 44 | #ifdef LISP_FLOAT_TYPE |
| 37 | 45 | ||
| 38 | #ifdef STDC_HEADERS | 46 | #ifdef STDC_HEADERS |
| 39 | #include <float.h> | ||
| 40 | #include <stdlib.h> | 47 | #include <stdlib.h> |
| 41 | #endif | 48 | #endif |
| 42 | 49 | ||
diff --git a/src/doprnt.c b/src/doprnt.c index 7c703f87d5e..2b988acea5c 100644 --- a/src/doprnt.c +++ b/src/doprnt.c | |||
| @@ -24,12 +24,13 @@ Boston, MA 02111-1307, USA. */ | |||
| 24 | #include <config.h> | 24 | #include <config.h> |
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <ctype.h> | 26 | #include <ctype.h> |
| 27 | #include "lisp.h" | ||
| 28 | 27 | ||
| 29 | #if STDC_HEADERS | 28 | #if STDC_HEADERS |
| 30 | #include <float.h> | 29 | #include <float.h> |
| 31 | #endif | 30 | #endif |
| 32 | 31 | ||
| 32 | #include "lisp.h" | ||
| 33 | |||
| 33 | #ifndef DBL_MAX_10_EXP | 34 | #ifndef DBL_MAX_10_EXP |
| 34 | #define DBL_MAX_10_EXP 308 /* IEEE double */ | 35 | #define DBL_MAX_10_EXP 308 /* IEEE double */ |
| 35 | #endif | 36 | #endif |
diff --git a/src/floatfns.c b/src/floatfns.c index 11cf657f105..29bdccf2989 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -47,15 +47,17 @@ Boston, MA 02111-1307, USA. */ | |||
| 47 | #include <signal.h> | 47 | #include <signal.h> |
| 48 | 48 | ||
| 49 | #include <config.h> | 49 | #include <config.h> |
| 50 | #include "lisp.h" | ||
| 51 | #include "syssignal.h" | ||
| 52 | |||
| 53 | #ifdef LISP_FLOAT_TYPE | ||
| 54 | 50 | ||
| 51 | /* Put this before lisp.h so that lisp.h can define DBL_DIG if not defined. */ | ||
| 55 | #if STDC_HEADERS | 52 | #if STDC_HEADERS |
| 56 | #include <float.h> | 53 | #include <float.h> |
| 57 | #endif | 54 | #endif |
| 58 | 55 | ||
| 56 | #include "lisp.h" | ||
| 57 | #include "syssignal.h" | ||
| 58 | |||
| 59 | #ifdef LISP_FLOAT_TYPE | ||
| 60 | |||
| 59 | /* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */ | 61 | /* If IEEE_FLOATING_POINT isn't defined, default it from FLT_*. */ |
| 60 | #ifndef IEEE_FLOATING_POINT | 62 | #ifndef IEEE_FLOATING_POINT |
| 61 | #if (FLT_RADIX == 2 && FLT_MANT_DIG == 24 \ | 63 | #if (FLT_RADIX == 2 && FLT_MANT_DIG == 24 \ |