Navigation Menu

Skip to content

Commit

Permalink
json: Actually include in build.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Jun 6, 2018
1 parent dfef902 commit fb876e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Expand Up @@ -919,10 +919,6 @@ add_library(native STATIC
ext/native/base/timeutil.h ext/native/base/timeutil.h
ext/native/data/compression.cpp ext/native/data/compression.cpp
ext/native/data/compression.h 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.cpp
ext/native/file/chunk_file.h ext/native/file/chunk_file.h
ext/native/file/fd_util.cpp ext/native/file/fd_util.cpp
Expand Down Expand Up @@ -976,6 +972,8 @@ add_library(native STATIC
ext/native/input/keycodes.h ext/native/input/keycodes.h
ext/native/input/input_state.h ext/native/input/input_state.h
ext/native/input/input_state.cpp 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_math.c
ext/native/math/fast/fast_matrix.c ext/native/math/fast/fast_matrix.c
ext/native/math/fast/fast_matrix_neon.S ext/native/math/fast/fast_matrix_neon.S
Expand Down
3 changes: 2 additions & 1 deletion ext/native/json/json_writer.cpp
@@ -1,4 +1,5 @@
#include <iomanip> #include <iomanip>
#include <cstring>
#include "json/json_writer.h" #include "json/json_writer.h"


JsonWriter::JsonWriter(int flags) { JsonWriter::JsonWriter(int flags) {
Expand Down Expand Up @@ -49,7 +50,7 @@ const char *JsonWriter::comma() const {
if (stack_.back().first) { if (stack_.back().first) {
return ""; return "";
} else { } else {
return ",\n"; return pretty_ ? ",\n" : ",";
} }
} }


Expand Down

0 comments on commit fb876e7

Please sign in to comment.