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

Comparing ray/src/util/wrapBSDF.c (file contents):
Revision 2.11 by greg, Fri Feb 20 18:07:10 2015 UTC vs.
Revision 2.12 by greg, Wed Mar 4 17:42:54 2015 UTC

# Line 160 | Line 160 | input2str(const char *inpspec)
160                          fprintf(stderr, "%s: cannot open\n", inpspec);
161                          return "";
162                  }
163 + #ifndef _WIN32                          /* XXX somehow broken on Windows */
164                  len = lseek(fd, 0L, SEEK_END);
165                  if (len > 0) {
166                          lseek(fd, 0L, SEEK_SET);
# Line 178 | Line 179 | input2str(const char *inpspec)
179                          close(fd);
180                          return str;
181                  }
182 + #endif
183                  fp = fdopen(fd, "r");           /* not a regular file */
184          }
185                                                  /* reading from stream */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines