#ifndef __SG_STREAMBUF #define __SG_STREAMBUF 1 # include # include // // Until we find a good way to rename the original streambuf class // and derive our own streambuf class from that, define this variable // for now so the code can inherit our streambuf class instead. // # define SG_NEED_STREAMBUF_HACK 1 class __streambuf : virtual public streambuf { public: typedef std::char_traits traits_type; typedef std::char_traits::int_type int_type; typedef streampos pos_type; typedef streamoff off_type; }; # if defined(sgi) && !defined(__GNUC__) # define pubsync sync namespace std { using ::streambuf; using ::streampos; using ::streamoff; }; # endif #endif // !__SG_STREAMBUF