]> granicus.if.org Git - php/commitdiff
add rdbuf() to our own istdiostream implementation, allowing C++ compile
authorThies C. Arntzen <thies@php.net>
Wed, 24 May 2000 09:44:02 +0000 (09:44 +0000)
committerThies C. Arntzen <thies@php.net>
Wed, 24 May 2000 09:44:02 +0000 (09:44 +0000)
using SUN and SGI native compilers. (by Jayakumar Muthukumarasamy <jk@kasenna.com>)

Zend/zend-scanner.l

index 44b80b9dfe0b6b28b9f2d6cbba1fcd553ebd7c3a..d1ff0b28a5c8486adcc1dab1f637c19925eec8bd 100644 (file)
@@ -92,6 +92,7 @@ private:
   stdiobuf _file;
 public:
   istdiostream (FILE* __f) : istream(), _file(__f) { init(&_file); }
+  stdiobuf* rdbuf()/* const */ { return &_file; }
 };
 #endif