diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-14 15:20:34 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-04-14 15:20:34 -0700 |
commit | 100539f7c8780053c07c21c22a67f08e86fd7f0e (patch) | |
tree | 5190d0bfffe2c8378356417bc85cacfc03479c62 | |
parent | d69115507e829af650e376bd28c6d840194da799 (diff) |
No C99 in public headers
-rw-r--r-- | include/grpc/impl/codegen/compression_types.h | 5 | ||||
-rw-r--r-- | src/core/lib/iomgr/socket_mutator.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/grpc/impl/codegen/compression_types.h b/include/grpc/impl/codegen/compression_types.h index 170d99f431..21932e9325 100644 --- a/include/grpc/impl/codegen/compression_types.h +++ b/include/grpc/impl/codegen/compression_types.h @@ -34,7 +34,6 @@ #ifndef GRPC_IMPL_CODEGEN_COMPRESSION_TYPES_H #define GRPC_IMPL_CODEGEN_COMPRESSION_TYPES_H -#include <stdbool.h> #include <stdint.h> #ifdef __cplusplus @@ -101,7 +100,7 @@ typedef struct grpc_compression_options { * precedence over \a default_algorithm. * TODO(dgq): currently only available for server channels. */ struct { - bool is_set; + int is_set; grpc_compression_level level; } default_level; @@ -109,7 +108,7 @@ typedef struct grpc_compression_options { * call specific settings. This option corresponds to the channel argument key * behind \a GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM. */ struct { - bool is_set; + int is_set; grpc_compression_algorithm algorithm; } default_algorithm; diff --git a/src/core/lib/iomgr/socket_mutator.h b/src/core/lib/iomgr/socket_mutator.h index 2f5b6c248e..28b1710ec4 100644 --- a/src/core/lib/iomgr/socket_mutator.h +++ b/src/core/lib/iomgr/socket_mutator.h @@ -37,6 +37,8 @@ #include <grpc/impl/codegen/grpc_types.h> #include <grpc/support/sync.h> +#include <stdbool.h> + #ifdef __cplusplus extern "C" { #endif |