diff options
author | Alexander Polcyn <apolcyn@google.com> | 2018-02-21 16:59:24 -0800 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2018-02-23 09:59:53 -0800 |
commit | db3e898a981ea0ae49823415efab78edd09a90ab (patch) | |
tree | cbb1e9c83bdabc999c7e17dadf7fa8679c041012 /src/core/lib/json | |
parent | a90d718cb89414bfe5f6cfaa69a1b3716ed55d5f (diff) |
Add a sanity check for inclusion of port_platform.h
Diffstat (limited to 'src/core/lib/json')
-rw-r--r-- | src/core/lib/json/json.cc | 2 | ||||
-rw-r--r-- | src/core/lib/json/json.h | 2 | ||||
-rw-r--r-- | src/core/lib/json/json_reader.cc | 4 | ||||
-rw-r--r-- | src/core/lib/json/json_reader.h | 1 | ||||
-rw-r--r-- | src/core/lib/json/json_string.cc | 2 | ||||
-rw-r--r-- | src/core/lib/json/json_writer.cc | 4 | ||||
-rw-r--r-- | src/core/lib/json/json_writer.h | 2 |
7 files changed, 13 insertions, 4 deletions
diff --git a/src/core/lib/json/json.cc b/src/core/lib/json/json.cc index adf35b9088..2141db4c5b 100644 --- a/src/core/lib/json/json.cc +++ b/src/core/lib/json/json.cc @@ -16,6 +16,8 @@ * */ +#include <grpc/support/port_platform.h> + #include <string.h> #include <grpc/support/alloc.h> diff --git a/src/core/lib/json/json.h b/src/core/lib/json/json.h index bbd43025eb..3a62ef9cfb 100644 --- a/src/core/lib/json/json.h +++ b/src/core/lib/json/json.h @@ -19,6 +19,8 @@ #ifndef GRPC_CORE_LIB_JSON_JSON_H #define GRPC_CORE_LIB_JSON_JSON_H +#include <grpc/support/port_platform.h> + #include <stdlib.h> #include "src/core/lib/json/json_common.h" diff --git a/src/core/lib/json/json_reader.cc b/src/core/lib/json/json_reader.cc index 6dadea5006..819572e4de 100644 --- a/src/core/lib/json/json_reader.cc +++ b/src/core/lib/json/json_reader.cc @@ -16,10 +16,10 @@ * */ -#include <string.h> - #include <grpc/support/port_platform.h> +#include <string.h> + #include <grpc/support/log.h> #include "src/core/lib/json/json_reader.h" diff --git a/src/core/lib/json/json_reader.h b/src/core/lib/json/json_reader.h index 03185cb2b6..78f7ad9f3a 100644 --- a/src/core/lib/json/json_reader.h +++ b/src/core/lib/json/json_reader.h @@ -20,6 +20,7 @@ #define GRPC_CORE_LIB_JSON_JSON_READER_H #include <grpc/support/port_platform.h> + #include "src/core/lib/json/json_common.h" typedef enum { diff --git a/src/core/lib/json/json_string.cc b/src/core/lib/json/json_string.cc index 8200900956..4f9175b9e7 100644 --- a/src/core/lib/json/json_string.cc +++ b/src/core/lib/json/json_string.cc @@ -16,6 +16,8 @@ * */ +#include <grpc/support/port_platform.h> + #include <stdlib.h> #include <string.h> diff --git a/src/core/lib/json/json_writer.cc b/src/core/lib/json/json_writer.cc index 6d442b8716..7bbdccc7a3 100644 --- a/src/core/lib/json/json_writer.cc +++ b/src/core/lib/json/json_writer.cc @@ -16,10 +16,10 @@ * */ -#include <string.h> - #include <grpc/support/port_platform.h> +#include <string.h> + #include "src/core/lib/json/json_writer.h" static void json_writer_output_char(grpc_json_writer* writer, char c) { diff --git a/src/core/lib/json/json_writer.h b/src/core/lib/json/json_writer.h index a4f2d4daeb..ba0bedde7f 100644 --- a/src/core/lib/json/json_writer.h +++ b/src/core/lib/json/json_writer.h @@ -31,6 +31,8 @@ #ifndef GRPC_CORE_LIB_JSON_JSON_WRITER_H #define GRPC_CORE_LIB_JSON_JSON_WRITER_H +#include <grpc/support/port_platform.h> + #include <stdlib.h> #include "src/core/lib/json/json_common.h" |