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.
This commit is contained in:
parent
202bd7bff2
commit
8acb88c502
1 changed files with 3 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue