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

Comparing ray/src/common/bmpfile.h (file contents):
Revision 2.4 by greg, Fri Mar 18 21:04:05 2005 UTC vs.
Revision 2.6 by greg, Sat May 31 19:38:36 2008 UTC

# Line 6 | Line 6
6   #ifndef _RAD_BMPFILE_H_
7   #define _RAD_BMPFILE_H_
8  
9 < #include "tifftypes.h"
9 > #include "tiff.h"                       /* needed for int32, etc. */
10  
11   #ifdef __cplusplus
12   extern "C" {
# Line 138 | Line 138 | int            stdio_fseek(uint32 pos, void *p);
138  
139                                          /* open input file */
140   #define BMPopenInputFile(fn)    BMPopenReader(&stdio_getc, &stdio_fseek, \
141 <                                        (void *)fopen(fn, "r"))
141 >                                        (void *)fopen(fn, "rb"))
142  
143                                          /* close stdio input file or stream */
144   #define BMPcloseInput(br)       ( fclose((FILE *)(br)->c_data), \
# Line 151 | Line 151 | int            stdio_fseek(uint32 pos, void *p);
151                                          /* open stdio output file */
152   #define BMPopenOutputFile(fn,hdr) \
153                          BMPopenWriter(&stdio_putc, &stdio_fseek, \
154 <                                        (void *)fopen(fn, "w"), hdr)
154 >                                        (void *)fopen(fn, "wb"), hdr)
155  
156                                          /* close stdio output file or stream */
157   #define BMPcloseOutput(bw)      ( fclose((FILE *)(bw)->c_data), \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines