]> git.pld-linux.org Git - packages/octave.git/blame - octave-gcc31.patch
- merged two *.info patches and one more fix into single info patch
[packages/octave.git] / octave-gcc31.patch
CommitLineData
09469247
JB
1--- octave-2.1.36/src/c-file-ptr-stream.h.blah Thu May 23 19:34:39 2002
2+++ octave-2.1.36/src/c-file-ptr-stream.h Thu May 23 19:34:49 2002
3@@ -30,9 +30,16 @@
4 #include <iostream>
5 #include <fstream>
6 #include <cstdio>
7+#if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
8+#include <ext/stdio_filebuf.h>
9+#endif
10
11 class
12+#if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
13+c_file_ptr_buf : public __gnu_cxx::stdio_filebuf<char>
14+#else
15 c_file_ptr_buf : public std::filebuf
16+#endif
17 {
18 public:
19
20@@ -47,7 +54,11 @@
21 c_file_ptr_buf (FILE *f_arg, close_fcn cf_arg = ::fclose)
22 :
23 #if defined __GNUC__ && __GNUC__ >= 3
24+# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
25+ __gnu_cxx::stdio_filebuf<char> (f_arg, std::ios::in | std::ios::out),
26+# else
27 std::filebuf (f_arg, std::ios::in | std::ios::out),
28+#endif
29 #else
30 std::filebuf (f_arg ? fileno (f_arg) : -1),
31 #endif
This page took 0.075759 seconds and 4 git commands to generate.