diff options
| author | Paul Eggert | 1997-10-29 07:47:37 +0000 |
|---|---|---|
| committer | Paul Eggert | 1997-10-29 07:47:37 +0000 |
| commit | b0a1044b3ec84dd151a9f7b881c552bc4d44594a (patch) | |
| tree | 51eca7d18f38396473f092ff940f03378f2fd63f /src | |
| parent | 4dc1a160872c90a0372d543ac3d0d69e9b71b6f1 (diff) | |
| download | emacs-b0a1044b3ec84dd151a9f7b881c552bc4d44594a.tar.gz emacs-b0a1044b3ec84dd151a9f7b881c552bc4d44594a.zip | |
(DBL_MIN): Use workaround if DBL_MIN_REPLACEMENT is defined.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c index 237bccc5a65..57193694f4a 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Lisp object printing and output streams. | 1 | /* Lisp object printing and output streams. |
| 2 | Copyright (C) 1985, 86, 88, 93, 94, 95 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 86, 88, 93, 94, 95, 97 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -73,6 +73,14 @@ Lisp_Object Vfloat_output_format, Qfloat_output_format; | |||
| 73 | #ifndef DBL_DIG | 73 | #ifndef DBL_DIG |
| 74 | #define DBL_DIG 15 | 74 | #define DBL_DIG 15 |
| 75 | #endif | 75 | #endif |
| 76 | #ifndef DBL_MIN | ||
| 77 | #define DBL_MIN 2.2250738585072014e-308 | ||
| 78 | #endif | ||
| 79 | |||
| 80 | #ifdef DBL_MIN_REPLACEMENT | ||
| 81 | #undef DBL_MIN | ||
| 82 | #define DBL_MIN DBL_MIN_REPLACEMENT | ||
| 83 | #endif | ||
| 76 | 84 | ||
| 77 | /* Define DOUBLE_DIGITS_BOUND, an upper bound on the number of decimal digits | 85 | /* Define DOUBLE_DIGITS_BOUND, an upper bound on the number of decimal digits |
| 78 | needed to express a float without losing information. | 86 | needed to express a float without losing information. |