mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
16 lines
314 B
C++
16 lines
314 B
C++
#ifndef _ZEND_STDIOSTREAM
|
|
#define _ZEND_STDIOSTREAM
|
|
|
|
#if defined(ZTS) && !defined(HAVE_CLASS_ISTDIOSTREAM)
|
|
class istdiostream : public istream
|
|
{
|
|
private:
|
|
stdiobuf _file;
|
|
public:
|
|
istdiostream (FILE* __f) : istream(), _file(__f) { init(&_file); }
|
|
stdiobuf* rdbuf()/* const */ { return &_file; }
|
|
};
|
|
#endif
|
|
|
|
#endif
|