summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lread.c7
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/>. */
#ifdef MSDOS
#include "msdos.h"
-#if __DJGPP__ == 2 && __DJGPP_MINOR__ < 5
-# define INFINITY __builtin_inf()
-# define NAN __builtin_nan("")
-#endif
#endif
#ifdef HAVE_NS
@@ -74,6 +70,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#if IEEE_FLOATING_POINT
# include <ieee754.h>
+# ifndef INFINITY
+# define INFINITY ((union ieee754_double) {.ieee = {.exponent = -1}}.d)
+# endif
#endif
/* The objects or placeholders read with the #n=object form.