From 8d4b56b3f566dbe3963029fe85356fd9bb014fb3 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Tue, 15 Aug 2017 14:34:09 -0400 Subject: [PATCH] Don't emit CRLF when generating code on Windows (from SkSL) Bug: skia: Change-Id: I3f3c5f9df43e48f975b09f0bafadf03a15afec51 Reviewed-on: https://skia-review.googlesource.com/34745 Reviewed-by: Ethan Nicholas Commit-Queue: Brian Osman --- src/sksl/SkSLFileOutputStream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sksl/SkSLFileOutputStream.h b/src/sksl/SkSLFileOutputStream.h index 7eba19fb77..7d8394162c 100644 --- a/src/sksl/SkSLFileOutputStream.h +++ b/src/sksl/SkSLFileOutputStream.h @@ -17,7 +17,7 @@ namespace SkSL { class FileOutputStream : public OutputStream { public: FileOutputStream(const char* name) { - fFile = fopen(name, "w"); + fFile = fopen(name, "wb"); } ~FileOutputStream() override {