mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +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
|