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

Comparing ray/src/util/rmtxop.c (file contents):
Revision 2.9 by schorsch, Sun Mar 6 01:13:18 2016 UTC vs.
Revision 2.10 by greg, Thu Aug 18 17:57:57 2016 UTC

# Line 10 | Line 10 | static const char RCSid[] = "$Id$";
10   #include "rtio.h"
11   #include "resolu.h"
12   #include "rmatrix.h"
13 + #include "platform.h"
14  
15   #define MAXCOMP         50              /* #components we support */
16  
# Line 233 | Line 234 | main(int argc, char *argv[])
234                                          /* write result to stdout */
235          if (outfmt == DTfromHeader)
236                  outfmt = mres->dtype;
236 #if defined(_WIN32) || defined(_WIN64)
237          if (outfmt != DTascii)
238 <                _setmode(fileno(stdout), _O_BINARY);
239 < #endif
238 >                SET_FILE_BINARY(stdout);
239          newheader("RADIANCE", stdout);
240          printargs(argc, argv, stdout);
241          if (!rmx_write(mres, outfmt, stdout)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines