--- src/engine/blur.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/blur.c Fri Jul 3 15:39:10 1998 @@ -1,5 +1,10 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #include #include #include @@ -294,6 +299,7 @@ } #define AMOUNT 0.005 #define DIV 1000.0 +#undef MAX #define MAX 800*1000 /*after 800 frames should be OK */ static int doit (struct filter *f, int flags, int time1) --- src/engine/btrace.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/btrace.c Fri Jul 3 16:24:08 1998 @@ -1,5 +1,12 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#else +#include +#endif #include #include #include --- src/engine/dither.c-- Fri Jul 3 14:15:34 1998 +++ src/engine/dither.c Fri Jul 3 15:36:23 1998 @@ -13,8 +13,13 @@ * Note that quite interesting alg. is for preparing dithering table at * fixedcolor displays. */ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #include #include #include @@ -31,6 +36,7 @@ #include #include #include +#undef MSIZE #define MSIZE 8 static int matrix[MSIZE][MSIZE] = { --- src/engine/edge.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/edge.c Fri Jul 3 14:16:28 1998 @@ -2,8 +2,15 @@ * This is very simple filter - it initializes smalliter image and then * does an simple edge detection algo on it. */ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#else +#include +#endif #include /*for NULL */ #else #include --- src/engine/edge2.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/edge2.c Fri Jul 3 14:17:40 1998 @@ -2,8 +2,15 @@ * This is very simple filter - it initializes smalliter image and then * does an simple edge detection algo on it. */ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#else +#include +#endif #include /*for NULL */ #else #include --- src/engine/emboss.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/emboss.c Fri Jul 3 14:11:39 1998 @@ -1,5 +1,12 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#else +#include +#endif #include #else #include --- src/engine/fractal.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/fractal.c Wed Sep 8 00:45:59 1999 @@ -20,15 +20,21 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /*#define STATISTICS */ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifdef _plan9_ #include #include #include #else #include -#ifndef _MAC +#if (!defined(_MAC) && (!defined(BSD) || (BSD < 199506))) #include #endif +#if (defined(BSD) && (BSD >= 199506)) +#include +#endif #include #include #include @@ -50,16 +56,21 @@ #include #ifdef __GNUC__ #ifdef __i386__ +#ifdef __linux__ #ifndef PC_64 #include #endif #endif #endif +#endif #ifdef __alpha__ #ifdef __linux__ #include #endif #endif +#if (defined(BSD) && (BSD >= 199506)) +#include +#endif #ifndef M_PI #define M_PI 3.1415 #endif @@ -335,9 +346,11 @@ #ifdef __GNUC__ #ifdef __i386__ +#ifdef __linux__ _control87 (PC_64 | MCW_EM | MCW_RC, MCW_PC | MCW_EM | MCW_RC); #endif #endif +#endif #ifdef __alpha__ #ifdef __linux__ extern void ieee_set_fp_control(unsigned long); @@ -352,6 +365,16 @@ /*fcr &= ~(FPINEX | FPOVFL | FPUNFL | FPZDIV);*/ setfcr (fcr); } +#endif +#ifdef BSD + /* ignore all possible exceptions */ +#ifdef __alpha__ + (void) fpsetmask(~(FP_X_INV | FP_X_OFL | FP_X_UFL | FP_X_DZ | + FP_X_IMP)); +#else + (void) fpsetmask(~(FP_X_INV | FP_X_OFL | FP_X_UFL | FP_X_DZ | + FP_X_IMP | FP_X_DNML)); +#endif #endif new_ctxt = (fractal_context *) calloc (sizeof (fractal_context), 1); if (new_ctxt == NULL) --- src/engine/i386.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/i386.c Fri Jul 3 17:48:38 1998 @@ -1,4 +1,4 @@ - +#ifdef __linux__ /* * ctrl87.c */ @@ -211,6 +211,7 @@ } return _to; } +#endif #endif #endif #endif --- src/engine/interlace.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/interlace.c Fri Jul 3 14:21:21 1998 @@ -1,5 +1,12 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#else +#include +#endif #include /*for NULL */ #include /*for memcpy */ #else --- src/engine/itersmall.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/itersmall.c Fri Jul 3 14:22:29 1998 @@ -1,5 +1,10 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #include #ifdef HAVE_ALLOCA_H #include --- src/engine/julia.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/julia.c Fri Jul 3 14:24:57 1998 @@ -1,3 +1,6 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifdef _plan9_ #include #include @@ -5,7 +8,9 @@ #else #include #include +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #include #include #endif --- src/engine/palettef.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/palettef.c Fri Jul 3 14:09:38 1998 @@ -1,5 +1,12 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#else +#include +#endif #include #else #include --- src/engine/rotate.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/rotate.c Fri Jul 3 16:24:16 1998 @@ -4,12 +4,19 @@ * 'E' menu. * It is used to implement fast rotation mode */ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ #include #include #include #include +#if (!defined(BSD) || (BSD < 199506)) #include +#else +#include +#endif #else #include #include --- src/engine/star.c-- Fri Jul 3 14:12:59 1998 +++ src/engine/star.c Fri Jul 3 14:51:59 1998 @@ -1,5 +1,10 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #include #include #ifdef HAVE_ALLOCA_H --- src/engine/stereogram.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/stereogram.c Fri Jul 3 14:22:55 1998 @@ -1,5 +1,10 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #include #ifdef HAVE_ALLOCA_H #include --- src/engine/subwindow.c-- Fri Jul 3 14:24:23 1998 +++ src/engine/subwindow.c Fri Jul 3 14:23:57 1998 @@ -1,5 +1,12 @@ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifndef _plan9_ +#if (!defined(BSD) || (BSD < 199506)) #include +#else +#include +#endif #include /*for NULL */ #include /*for memcpy */ #else --- src/engine/zoom.c-- Thu Mar 5 03:19:12 1998 +++ src/engine/zoom.c Fri Jul 3 16:24:03 1998 @@ -20,6 +20,9 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /*#define DRAW */ +#if defined(HAVE_SYS_PARAM_H) +#include +#endif #ifdef _plan9_ #include #include @@ -27,7 +30,7 @@ #else #include #include -#ifndef _MAC +#if (!defined(_MAC) && (!defined(BSD) || (BSD < 199506))) #include #endif #ifdef __EMX__ @@ -61,6 +64,7 @@ #include "calculate.h" /*an inlined calulate function */ #define ASIZE 16 +#undef ALIGN #define ALIGN(x) (((x)+ASIZE-1)&(~(ASIZE-1))) static int nsymetrized; static unsigned char *tmpdata, *tmpdata1;