Mercurial > hg > octave-lyh
diff src/c-file-ptr-stream.h @ 4073:38a22328f192
[project @ 2002-09-27 18:02:14 by jwe]
author | jwe |
---|---|
date | Fri, 27 Sep 2002 18:02:14 +0000 |
parents | 47d3baea432d |
children | 5719210fff4c |
line wrap: on
line diff
--- a/src/c-file-ptr-stream.h +++ b/src/c-file-ptr-stream.h @@ -31,7 +31,6 @@ #include <fstream> #include <cstdio> -// // The c_file_ptr_buf requires a std::filebuf that accepts an open // file descriptor. This feature, while not part of the ISO C++ // standard, is supported by a variety of C++ compiler runtimes, @@ -45,8 +44,8 @@ // the GNU C++ runtime removes all non-standard std::filebuf constructors // and provides an extension template class __gnu_cxx::stdio_filebuf // that supports the the 3.0.x behavior. -// -#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) + +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) && ! (defined (__APPLE__) && defined (__MACH__)) # include <ext/stdio_filebuf.h> # define OCTAVE_STD_FILEBUF __gnu_cxx::stdio_filebuf<char> #else