Removed
Link Here
|
1 |
Obtained from: https://github.com/rizsotto/Bear/commit/3ba056a6cdebd1608279e89b021e7c28bcee3ea3 |
2 |
|
3 |
--- source/intercept/source/collect/db/EventsDatabaseWriter.cc.orig 2023-08-28 08:46:17 UTC |
4 |
+++ source/intercept/source/collect/db/EventsDatabaseWriter.cc |
5 |
@@ -21,6 +21,8 @@ |
6 |
#include "libsys/Errors.h" |
7 |
|
8 |
#include <google/protobuf/util/json_util.h> |
9 |
+#include <google/protobuf/stubs/common.h> |
10 |
+ |
11 |
#include <fmt/format.h> |
12 |
|
13 |
#include <sys/types.h> |
14 |
@@ -36,7 +38,9 @@ namespace { |
15 |
JsonPrintOptions create_print_options() { |
16 |
JsonPrintOptions print_options; |
17 |
print_options.add_whitespace = false; |
18 |
- print_options.always_print_primitive_fields = true; |
19 |
+#if GOOGLE_PROTOBUF_VERSION < 5026000 |
20 |
+ print_options.always_print_primitive_fields = true; |
21 |
+#endif |
22 |
print_options.preserve_proto_field_names = true; |
23 |
print_options.always_print_enums_as_ints = false; |
24 |
return print_options; |
25 |
- |