diff options
Diffstat (limited to 'base/json_writer.cc')
-rw-r--r-- | base/json_writer.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/json_writer.cc b/base/json_writer.cc index a95798e..1a9f1b6 100644 --- a/base/json_writer.cc +++ b/base/json_writer.cc @@ -9,7 +9,11 @@ #include "base/values.h" #include "base/string_escape.h" -const char kPrettyPrintLineEnding[] = "\r\n"; +#if defined(OS_WIN) +static const char kPrettyPrintLineEnding[] = "\r\n"; +#else +static const char kPrettyPrintLineEnding[] = "\n"; +#endif /* static */ void JSONWriter::Write(const Value* const node, |