aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/impl/codegen
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2018-02-21 16:59:24 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2018-02-23 09:59:53 -0800
commitdb3e898a981ea0ae49823415efab78edd09a90ab (patch)
treecbb1e9c83bdabc999c7e17dadf7fa8679c041012 /include/grpc/impl/codegen
parenta90d718cb89414bfe5f6cfaa69a1b3716ed55d5f (diff)
Add a sanity check for inclusion of port_platform.h
Diffstat (limited to 'include/grpc/impl/codegen')
-rw-r--r--include/grpc/impl/codegen/byte_buffer.h2
-rw-r--r--include/grpc/impl/codegen/sync.h1
-rw-r--r--include/grpc/impl/codegen/sync_custom.h2
-rw-r--r--include/grpc/impl/codegen/sync_generic.h2
-rw-r--r--include/grpc/impl/codegen/sync_posix.h2
-rw-r--r--include/grpc/impl/codegen/sync_windows.h2
6 files changed, 11 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/byte_buffer.h b/include/grpc/impl/codegen/byte_buffer.h
index f8dfbd1d7d..774655ed66 100644
--- a/include/grpc/impl/codegen/byte_buffer.h
+++ b/include/grpc/impl/codegen/byte_buffer.h
@@ -19,6 +19,8 @@
#ifndef GRPC_IMPL_CODEGEN_BYTE_BUFFER_H
#define GRPC_IMPL_CODEGEN_BYTE_BUFFER_H
+#include <grpc/impl/codegen/port_platform.h>
+
#include <grpc/impl/codegen/grpc_types.h>
#ifdef __cplusplus
diff --git a/include/grpc/impl/codegen/sync.h b/include/grpc/impl/codegen/sync.h
index 6cdb0c5153..3df68c644f 100644
--- a/include/grpc/impl/codegen/sync.h
+++ b/include/grpc/impl/codegen/sync.h
@@ -43,6 +43,7 @@ extern "C" {
/* Platform-specific type declarations of gpr_mu and gpr_cv. */
#include <grpc/impl/codegen/port_platform.h>
+
#include <grpc/impl/codegen/sync_generic.h>
#if defined(GPR_POSIX_SYNC)
diff --git a/include/grpc/impl/codegen/sync_custom.h b/include/grpc/impl/codegen/sync_custom.h
index 0840ad26bf..69b1bf6cd1 100644
--- a/include/grpc/impl/codegen/sync_custom.h
+++ b/include/grpc/impl/codegen/sync_custom.h
@@ -19,6 +19,8 @@
#ifndef GRPC_IMPL_CODEGEN_SYNC_CUSTOM_H
#define GRPC_IMPL_CODEGEN_SYNC_CUSTOM_H
+#include <grpc/impl/codegen/port_platform.h>
+
#include <grpc/impl/codegen/sync_generic.h>
/* Users defining GPR_CUSTOM_SYNC need to define the following macros. */
diff --git a/include/grpc/impl/codegen/sync_generic.h b/include/grpc/impl/codegen/sync_generic.h
index 83f905e120..d64db58a84 100644
--- a/include/grpc/impl/codegen/sync_generic.h
+++ b/include/grpc/impl/codegen/sync_generic.h
@@ -20,6 +20,8 @@
#define GRPC_IMPL_CODEGEN_SYNC_GENERIC_H
/* Generic type defintions for gpr_sync. */
+#include <grpc/impl/codegen/port_platform.h>
+
#include <grpc/impl/codegen/atm.h>
/* gpr_event */
diff --git a/include/grpc/impl/codegen/sync_posix.h b/include/grpc/impl/codegen/sync_posix.h
index 6a3aed92c1..d927046c53 100644
--- a/include/grpc/impl/codegen/sync_posix.h
+++ b/include/grpc/impl/codegen/sync_posix.h
@@ -19,6 +19,8 @@
#ifndef GRPC_IMPL_CODEGEN_SYNC_POSIX_H
#define GRPC_IMPL_CODEGEN_SYNC_POSIX_H
+#include <grpc/impl/codegen/port_platform.h>
+
#include <grpc/impl/codegen/sync_generic.h>
#include <pthread.h>
diff --git a/include/grpc/impl/codegen/sync_windows.h b/include/grpc/impl/codegen/sync_windows.h
index 39b127603d..ba5d5aede0 100644
--- a/include/grpc/impl/codegen/sync_windows.h
+++ b/include/grpc/impl/codegen/sync_windows.h
@@ -19,6 +19,8 @@
#ifndef GRPC_IMPL_CODEGEN_SYNC_WINDOWS_H
#define GRPC_IMPL_CODEGEN_SYNC_WINDOWS_H
+#include <grpc/impl/codegen/port_platform.h>
+
#include <grpc/impl/codegen/sync_generic.h>
typedef struct {