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.7 by greg, Fri Jan 23 01:03:17 2015 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 231 | Line 232 | main(int argc, char *argv[])
232          if (mres == NULL)               /* check that we got something */
233                  goto userr;
234                                          /* write result to stdout */
234 #ifdef getc_unlocked
235        flockfile(stdout);
236 #endif
235          if (outfmt == DTfromHeader)
236                  outfmt = mres->dtype;
239 #ifdef _WIN32
237          if (outfmt != DTascii)
238 <                _setmode(fileno(stdout), _O_BINARY);
242 < #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