#ifdef __GNUC__
_buf(_pfile, std::ios::in)
#else
- _buf(_pfile)
+ _buf()
#endif
{
if (!_pfile)
setstate(badbit);
+#ifdef _MSC_VER
+ else
+ _buf.open(fileno(_pfile));
+#endif
}
protected:
#ifdef __GNUC__
_buf(_pfile, std::ios::out)
#else
- _buf(_pfile)
+ _buf()
#endif
{
if (!_pfile)
setstate(badbit);
+#ifdef _MSC_VER
+ else
+ _buf.open(fileno(_pfile));
+#endif
}
~tofstream()