]> git.saurik.com Git - cycript.git/blobdiff - Library.cpp
Try to use std::streambuf instead of std::istream.
[cycript.git] / Library.cpp
index 720322564e1fb181f6ac78407f6116164ffb8c8e..aa85e81cc595da8fa04ebebb1c8b90ce10b760a4 100644 (file)
@@ -224,7 +224,7 @@ _visible bool CYStartsWith(const CYUTF8String &haystack, const CYUTF8String &nee
     return haystack.size >= needle.size && strncmp(haystack.data, needle.data, needle.size) == 0;
 }
 
-CYUTF8String CYPoolCode(CYPool &pool, std::istream &stream) {
+CYUTF8String CYPoolCode(CYPool &pool, std::streambuf &stream) {
     CYLocalPool local;
     CYDriver driver(local, stream);
     _assert(!driver.Parse());