changeset 1253:7afcf7be0d30

* data.c (Frem): Use the `fmod' function under SunOS, Ultrix, and HP/UX, not just under USG systems.
author Jim Blandy <jimb@redhat.com>
date Tue, 29 Sep 1992 04:54:28 +0000
parents 86a17674c2a1
children c7e7e3438711
files src/buffer.c src/data.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Tue Sep 29 04:08:04 1992 +0000
+++ b/src/buffer.c	Tue Sep 29 04:54:28 1992 +0000
@@ -931,7 +931,7 @@
     }
 
   /* Remove it from the screen.  */
-  if (EQ (buf, XWINDOW (selected_frame)->buffer))
+  if (EQ (buf, XWINDOW (selected_window)->buffer))
     Fswitch_to_buffer (Fother_buffer (buf), Qnil);
 
   /* Move it to the end of the buffer list.  */
--- a/src/data.c	Tue Sep 29 04:08:04 1992 +0000
+++ b/src/data.c	Tue Sep 29 04:54:28 1992 +0000
@@ -1649,7 +1649,7 @@
 
       f1 = XTYPE (num1) == Lisp_Float ? XFLOAT (num1)->data : XINT (num1);
       f2 = XTYPE (num2) == Lisp_Float ? XFLOAT (num2)->data : XINT (num2);
-#ifdef USG
+#if defined (USG) || defined (sun) || defined (ultrix) || defined (hpux)
       f1 = fmod (f1, f2);
 #else
       f1 = drem (f1, f2);