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

Comparing ray/src/hd/holofile.c (file contents):
Revision 3.58 by greg, Thu Dec 4 23:34:00 2008 UTC vs.
Revision 3.60 by schorsch, Sun Mar 6 01:13:17 2016 UTC

# Line 42 | Line 42 | static const char      RCSid[] = "$Id$";
42   #endif
43  
44   #ifndef BSD
45 + #ifdef write /* platform.h renames those for Windows */
46 + #undef write
47 + #endif
48   #define write   writebuf        /* safe i/o routines */
49 + #ifdef read
50 + #undef read
51 + #endif
52   #define read    readbuf
53   #endif
54  
# Line 246 | Line 252 | hdinit(        /* initialize a holodeck section in a file */
252                  }
253          if (rtrunc) {
254                  sprintf(errmsg, "truncated section, %ld rays lost (%.1f%%)",
255 <                                rtrunc, 100.*rtrunc/(rtrunc+biglob(hp)->nrd));
255 >                                (long)rtrunc,
256 >                                100.*rtrunc/(rtrunc+biglob(hp)->nrd));
257                  error(WARNING, errmsg);
258          }
259                                          /* add to holodeck list */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines