http://www.ibiblio.org/pub/historic-linux/ftp-archives/sunsite.unc.edu/Sep-29-1996...
[xscreensaver] / hacks / flame.c
index e010b9df226bce0fc95862410627bb28f1c952d1..3f98e3e3036efbf670f287091a1776a9bbb611ef 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1993 Jamie Zawinski <jwz@mcom.com>
+/* xscreensaver, Copyright (c) 1993, 1995 Jamie Zawinski <jwz@netscape.com>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -48,8 +48,6 @@
 
 #include "screenhack.h"
 
-/*#include <math.h>*/
-
 #define POINT_BUFFER_SIZE 10
 #define MAXLEV 4
 
@@ -248,6 +246,23 @@ flame (dpy, window)
   if (delay) usleep (delay);
 }
 
+
+#ifdef __hpux
+/* I don't understand why this is necessary, but I'm told that this program
+   does nothing at all on HP-sUX without it.
+ */
+#undef random
+#undef srandom
+#include <math.h>
+int matherr(x)
+   register struct exception *x;
+{
+  if (x->type == PLOSS) return 1;
+  else return 0;
+}
+#endif /* __hpux */
+
+
 \f
 char *progclass = "Flame";