# HG changeset patch # User John W. Eaton # Date 1286304195 14400 # Node ID dc4f8dfe53251a002de36caf97f92723ba92bdf7 # Parent 2aec7e3b8553ce17b2bd2567126ae7dc38319aeb oct-stdstrm.h: avoid problems if fileno is a macro diff -r 2aec7e3b8553 -r dc4f8dfe5325 src/ChangeLog --- a/src/ChangeLog Tue Oct 05 03:29:43 2010 -0400 +++ b/src/ChangeLog Tue Oct 05 14:43:15 2010 -0400 @@ -1,3 +1,8 @@ +2010-10-05 John W. Eaton + + * oct-stdstrm.h (octave_stdiostream::octave_stdiostream): Use + fileno instead of ::fileno to avoid problems if fileno is a macro. + 2010-10-04 Shai Ayal * graphics.h.in (axis::properties::pixel_size): New function. diff -r 2aec7e3b8553 -r dc4f8dfe5325 src/oct-stdstrm.h --- a/src/oct-stdstrm.h Tue Oct 05 03:29:43 2010 -0400 +++ b/src/oct-stdstrm.h Tue Oct 05 14:43:15 2010 -0400 @@ -108,7 +108,7 @@ oct_mach_info::float_format ff = oct_mach_info::native_float_format (), c_file_ptr_buf::close_fcn cf = c_file_ptr_buf::file_close) - : octave_tstdiostream (n, f, f ? ::fileno (f) : -1, m, ff, cf) { } + : octave_tstdiostream (n, f, f ? fileno (f) : -1, m, ff, cf) { } static octave_stream create (const std::string& n, FILE *f = 0,