--- gforth/Attic/engine.c 1994/10/24 19:15:56 1.19 +++ gforth/Attic/engine.c 1995/01/10 18:57:42 1.22 @@ -13,12 +13,18 @@ #include #include #include +#include #include "forth.h" #include "io.h" +#ifndef SEEK_SET +/* should be defined in stdio.h, but some systems don't have it */ +#define SEEK_SET 0 +#endif + typedef union { struct { -#ifdef BIG_ENDIAN +#ifdef WORDS_BIGENDIAN Cell high; Cell low; #else @@ -117,6 +123,9 @@ char *cstr(Char *from, UCell size, int c #define NEWLINE '\n' +#ifndef HAVE_RINT +#define rint(x) floor((x)+0.5) +#endif static char* fileattr[6]={"r","rb","r+","r+b","w+","w+b"};