ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/ambient.c
(Generate patch)

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.50 by schorsch, Thu Jun 5 19:29:34 2003 UTC vs.
Revision 2.51 by schorsch, Thu Jun 26 00:58:10 2003 UTC

# Line 163 | Line 163 | setambient()                           /* initialize calculation */
163                                          (flen - pos)/AMBVALSIZ);
164                          error(WARNING, errmsg);
165                          fseek(ambfp, pos, 0);
166 + #ifndef _WIN32 /* XXX we need a replacement for that one */
167                          ftruncate(fileno(ambfp), (off_t)pos);
168 + #endif
169                  }
170          } else if ((ambfp = fopen(ambfile, "w+")) != NULL) {
171                  initambfile(1);                 /* else create new file */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines