diff options
| author | Paul Eggert | 2019-01-06 21:59:03 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-01-06 22:03:15 -0800 |
| commit | 8acb88c5026cb11cbff466f53bef9d3e864879e7 (patch) | |
| tree | a2ea6b19ce316e988143655fb5eb06cfb8655fb5 /src | |
| parent | 202bd7bff2710b98cde4ae4b6e1f6de9818591f8 (diff) | |
| download | emacs-8acb88c5026cb11cbff466f53bef9d3e864879e7.tar.gz emacs-8acb88c5026cb11cbff466f53bef9d3e864879e7.zip | |
Minor INFINITY/NAN cleanup
* src/lread.c (INFINITY): Use a more-portable way to specify
this macro on non-C99 platforms that lack it.
(NAN): Remove; unused.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c index 788e57b707f..02f7caadeda 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -46,10 +46,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 46 | 46 | ||
| 47 | #ifdef MSDOS | 47 | #ifdef MSDOS |
| 48 | #include "msdos.h" | 48 | #include "msdos.h" |
| 49 | #if __DJGPP__ == 2 && __DJGPP_MINOR__ < 5 | ||
| 50 | # define INFINITY __builtin_inf() | ||
| 51 | # define NAN __builtin_nan("") | ||
| 52 | #endif | ||
| 53 | #endif | 49 | #endif |
| 54 | 50 | ||
| 55 | #ifdef HAVE_NS | 51 | #ifdef HAVE_NS |
| @@ -74,6 +70,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 74 | 70 | ||
| 75 | #if IEEE_FLOATING_POINT | 71 | #if IEEE_FLOATING_POINT |
| 76 | # include <ieee754.h> | 72 | # include <ieee754.h> |
| 73 | # ifndef INFINITY | ||
| 74 | # define INFINITY ((union ieee754_double) {.ieee = {.exponent = -1}}.d) | ||
| 75 | # endif | ||
| 77 | #endif | 76 | #endif |
| 78 | 77 | ||
| 79 | /* The objects or placeholders read with the #n=object form. | 78 | /* The objects or placeholders read with the #n=object form. |