Commit 98873d06 authored by Kenton Varda's avatar Kenton Varda

Remove iostream from prod sources.

parent 46bf6129
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "message.h" #include "message.h"
#include <vector> #include <vector>
#include <string.h> #include <string.h>
#include <iostream> #include <stdio.h>
namespace capnproto { namespace capnproto {
namespace internal { namespace internal {
...@@ -204,12 +204,12 @@ SegmentReader* BuilderArena::tryGetSegment(SegmentId id) { ...@@ -204,12 +204,12 @@ SegmentReader* BuilderArena::tryGetSegment(SegmentId id) {
void BuilderArena::reportInvalidData(const char* description) { void BuilderArena::reportInvalidData(const char* description) {
// TODO: Better error reporting. // TODO: Better error reporting.
std::cerr << "BuilderArena: Parse error: " << description << std::endl; fprintf(stderr, "BuilderArena: Parse error: %s\n", description);
} }
void BuilderArena::reportReadLimitReached() { void BuilderArena::reportReadLimitReached() {
// TODO: Better error reporting. // TODO: Better error reporting.
std::cerr << "BuilderArena: Exceeded read limit." << std::endl; fputs("BuilderArena: Exceeded read limit.\n", stderr);
} }
} // namespace internal } // namespace internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment