Permalink
Browse files

json: Actually include in build.

  • Loading branch information...
unknownbrackets committed Apr 14, 2018
1 parent dfef902 commit fb876e78c0ef8f701302364a19e4b5bb12efcb41
Showing with 4 additions and 5 deletions.
  1. +2 −4 CMakeLists.txt
  2. +2 −1 ext/native/json/json_writer.cpp
View
@@ -919,10 +919,6 @@ add_library(native STATIC
ext/native/base/timeutil.h
ext/native/data/compression.cpp
ext/native/data/compression.h
ext/native/ext/vjson/json.cpp
ext/native/ext/vjson/json.h
ext/native/ext/vjson/block_allocator.cpp
ext/native/ext/vjson/block_allocator.h
ext/native/file/chunk_file.cpp
ext/native/file/chunk_file.h
ext/native/file/fd_util.cpp
@@ -976,6 +972,8 @@ add_library(native STATIC
ext/native/input/keycodes.h
ext/native/input/input_state.h
ext/native/input/input_state.cpp
ext/native/json/json_writer.h
ext/native/json/json_writer.cpp
ext/native/math/fast/fast_math.c
ext/native/math/fast/fast_matrix.c
ext/native/math/fast/fast_matrix_neon.S
@@ -1,4 +1,5 @@
#include <iomanip>
#include <cstring>
#include "json/json_writer.h"
JsonWriter::JsonWriter(int flags) {
@@ -49,7 +50,7 @@ const char *JsonWriter::comma() const {
if (stack_.back().first) {
return "";
} else {
return ",\n";
return pretty_ ? ",\n" : ",";
}
}

0 comments on commit fb876e7

Please sign in to comment.