aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty/masm/stubs/WTFStubs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/masm/stubs/WTFStubs.cpp')
-rw-r--r--src/3rdparty/masm/stubs/WTFStubs.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/3rdparty/masm/stubs/WTFStubs.cpp b/src/3rdparty/masm/stubs/WTFStubs.cpp
index dff692fd67..d1c684dbaf 100644
--- a/src/3rdparty/masm/stubs/WTFStubs.cpp
+++ b/src/3rdparty/masm/stubs/WTFStubs.cpp
@@ -68,7 +68,13 @@ uint32_t cryptographicallyRandomNumber()
return 0;
}
-static FilePrintStream* s_dataFile;
+static PrintStream* s_dataFile;
+
+void setDataFile(PrintStream *ps)
+{
+ delete s_dataFile;
+ s_dataFile = ps;
+}
void setDataFile(FILE* f)
{
@@ -76,7 +82,7 @@ void setDataFile(FILE* f)
s_dataFile = new FilePrintStream(f, FilePrintStream::Borrow);
}
-FilePrintStream& dataFile()
+PrintStream& dataFile()
{
if (!s_dataFile)
s_dataFile = new FilePrintStream(stderr, FilePrintStream::Borrow);