ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/platform.h
(Generate patch)

Comparing ray/src/common/platform.h (file contents):
Revision 3.13 by greg, Fri Aug 5 00:12:46 2016 UTC vs.
Revision 3.14 by greg, Thu Aug 18 17:57:57 2016 UTC

# Line 57 | Line 57
57  
58    #include <fcntl.h>  /* _O_BINARY, _O_TEXT */
59    #include <stdlib.h> /* _fmode */
60 <  #define SET_DEFAULT_BINARY() _fmode = _O_BINARY
60 >  #define SET_DEFAULT_BINARY() (_fmode = _O_BINARY)
61 >  #define SET_DEFAULT_TEXT() (_fmode = _O_TEXT)
62    #define SET_FILE_BINARY(fp) _setmode(_fileno(fp),_O_BINARY)
63 +  #define SET_FILE_TEXT(fp) _setmode(_fileno(fp),_O_TEXT)
64    #define SET_FD_BINARY(fd) _setmode(fd,_O_BINARY)
65 +  #define SET_FD_TEXT(fd) _setmode(fd,_O_TEXT)
66    #define putenv _putenv
67  
68   #else /* _WIN32 || _WIN64 */
# Line 79 | Line 82
82    #define SET_DEFAULT_BINARY()
83    #define SET_FILE_BINARY(fp)
84    #define SET_FD_BINARY(fd)
85 +  #define SET_DEFAULT_TEXT()
86 +  #define SET_FILE_TEXT(fp)
87 +  #define SET_FD_TEXT(fd)
88  
89   #endif /* _WIN32 || _WIN64 */
90  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines