summaryrefslogtreecommitdiff
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-01-08 09:16:45 +0000
committerRichard M. Stallman <rms@gnu.org>1994-01-08 09:16:45 +0000
commit4d9af165e22fb07962f39bd4b3e7009049950ee2 (patch)
treec9bba7df52ce4d2412991fadc06f58caf6eee8e2 /src/floatfns.c
parent791984334307c272a7757ccfb105f6c4f3478412 (diff)
downloademacs-4d9af165e22fb07962f39bd4b3e7009049950ee2.tar.gz
[MSDOS]: Don't define HAVE_MATHERR.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index b31f0baee27..733746a4578 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -53,6 +53,16 @@ Lisp_Object Qarith_error;
#ifdef LISP_FLOAT_TYPE
+#if 0 /* That is untrue--XINT is used below, and it uses INTBITS.
+ What in the world is values.h, anyway? */
+#ifdef MSDOS
+/* These are redefined in <values.h> and not used here */
+#undef INTBITS
+#undef LONGBITS
+#undef SHORTBITS
+#endif
+#endif
+
/* Work around a problem that happens because math.h on hpux 7
defines two static variables--which, in Emacs, are not really static,
because `static' is defined as nothing. The problem is that they are
@@ -70,12 +80,14 @@ Lisp_Object Qarith_error;
extern double logb ();
#endif /* !hpux && HAVE_LOGB */
+#ifndef MSDOS
#if defined(DOMAIN) && defined(SING) && defined(OVERFLOW)
/* If those are defined, then this is probably a `matherr' machine. */
# ifndef HAVE_MATHERR
# define HAVE_MATHERR
# endif
#endif
+#endif
#ifdef NO_MATHERR
#undef HAVE_MATHERR
@@ -813,7 +825,7 @@ Rounds the value toward zero.")
if (d >= 0.0)
IN_FLOAT (d = floor (d), "ftruncate", arg);
else
- IN_FLOAT (d = ceil (d), arg);
+ IN_FLOAT (d = ceil (d), "ftruncate", arg);
return make_float (d);
}
#endif