--- ray/src/rt/rpict.c 2003/06/30 14:59:12 2.57 +++ ray/src/rt/rpict.c 2003/07/03 21:44:41 2.60 @@ -7,6 +7,7 @@ static const char RCSid[] = "$Id"; #include "copyright.h" +#include "platform.h" #include "ray.h" #include @@ -24,7 +25,6 @@ static const char RCSid[] = "$Id"; #include #include -#include "platform.h" #include "view.h" #include "random.h" #include "paths.h" @@ -115,9 +115,7 @@ void report(); double pixvalue(); -#ifdef RHAS_ACCESS -#define file_exists(f) (access(f,F_OK)==0) -#else +#ifdef RHAS_STAT #include #include int @@ -128,6 +126,8 @@ char *fname; if (stat(fname, &sbuf) < 0) return(0); return((sbuf.st_mode & S_IFREG) != 0); } +#else +#define file_exists(f) (access(f,F_OK)==0) #endif @@ -322,6 +322,7 @@ char *pout, *zout, *prvr; putchar('\n'); if (pa < .99 || pa > 1.01) fputaspect(pa, stdout); + fputnow(stdout); fputformat(COLRFMT, stdout); putchar('\n'); if (zout != NULL)