--- ray/src/util/wrapBSDF.c 2015/02/20 18:07:10 2.11
+++ ray/src/util/wrapBSDF.c 2015/03/25 22:50:48 2.13
@@ -1,5 +1,5 @@
#ifndef lint
-static const char RCSid[] = "$Id: wrapBSDF.c,v 2.11 2015/02/20 18:07:10 greg Exp $";
+static const char RCSid[] = "$Id: wrapBSDF.c,v 2.13 2015/03/25 22:50:48 greg Exp $";
#endif
/*
* Wrap BSDF data in valid WINDOW XML file
@@ -160,6 +160,7 @@ input2str(const char *inpspec)
fprintf(stderr, "%s: cannot open\n", inpspec);
return "";
}
+#ifndef _WIN32 /* XXX somehow broken on Windows */
len = lseek(fd, 0L, SEEK_END);
if (len > 0) {
lseek(fd, 0L, SEEK_SET);
@@ -178,6 +179,7 @@ input2str(const char *inpspec)
close(fd);
return str;
}
+#endif
fp = fdopen(fd, "r"); /* not a regular file */
}
/* reading from stream */
@@ -452,12 +454,12 @@ writeBSDFblock(const char *caller, struct s_dfile *df)
puts("\t\tASTM E308 1931 Z.dsp");
break;
case DSuprime:
- puts("\t\tCIE-Z");
+ puts("\t\tCIE-u");
puts("\t\tSourceSpectrum>CIE Illuminant D65 1nm.ssp");
puts("\t\tASTM E308 1931 u.dsp");
break;
case DSvprime:
- puts("\t\tCIE-Z");
+ puts("\t\tCIE-v");
puts("\t\tSourceSpectrum>CIE Illuminant D65 1nm.ssp");
puts("\t\tASTM E308 1931 v.dsp");
break;