diff --git a/mozilla/js2/src/formatter.cpp b/mozilla/js2/src/formatter.cpp index e68cc01c6df..1a1e64160c2 100644 --- a/mozilla/js2/src/formatter.cpp +++ b/mozilla/js2/src/formatter.cpp @@ -149,13 +149,13 @@ int std::fputc(int c, FILE *file) int std::fputs(const char *s, FILE *file) { - return static_cast(printChars(file, s, s + strlen(s))); + return static_cast(JS::printChars(file, s, s + strlen(s))); } int std::fprintf(FILE* file, const char *format, ...) { - Buffer b; + JS::Buffer b; while (true) { va_list args; @@ -164,7 +164,7 @@ int std::fprintf(FILE* file, const char *format, ...) va_end(args); if (n >= 0 && n < b.size) { translateLFtoCR(b.buffer, b.buffer + n); - return static_cast(fwrite(b.buffer, 1, toSize_t(n), file)); + return static_cast(fwrite(b.buffer, 1, JS::toSize_t(n), file)); } b.expand(b.size*2); }