Revert to the previous version

This commit is contained in:
ehofman
2003-12-11 15:26:23 +00:00
parent ad394fb090
commit 53bdf9dac4
2 changed files with 1 additions and 22 deletions
-20
View File
@@ -9,27 +9,7 @@
namespace std {
using ::fstream;
using ::ofstream;
# ifdef SG_HAVE_NATIVE_SGI_COMPILERS
using ::ifstream;
# else
class ifstream : public ::ifstream {
private:
::ifstream *ifs;
public:
ifstream() { ifs = new ::ifstream(); }
ifstream(int fd) { ifs = new ::ifstream(fd); }
ifstream(int fd, char* p, int l) { ifs = new ::ifstream(fd, p, l); }
ifstream(const char* name, int mode=ios::in, int prot=filebuf::openprot)
{ ifs = new ::ifstream(name, mode, prot); };
~ifstream() { delete ifs; }
filebuf* rdbuf() { return ifs->rdbuf(); }
void open(const char* name, int mode=ios::in, int prot=filebuf::openprot)
{ ifs->open(name, mode, prot); }
int is_open() { return (!ifs->fail() && !ifs->eof()); }
};
# endif
};
+1 -2
View File
@@ -2,10 +2,9 @@
#ifndef __SG_IOSTREAM
#define __SG_IOSTREAM 1
# include <fstream>
# if defined(sgi) && !defined(__GNUC__)
# include <fstream>
# include <iostream.h>
class ios_base : public ios {