aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/codegen
diff options
context:
space:
mode:
authorGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-10 22:29:03 -0700
committerGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-10 22:30:26 -0700
commit4a9cd9c38b18a613f82a19062f15e7f4e8179fc0 (patch)
tree9315304133fe36f6551aad783bee8bf9bea8db92 /tools/codegen
parentfbe594beeb0e065bc357674bd99c3a3161795341 (diff)
Fix codegen script to include port_platform
Diffstat (limited to 'tools/codegen')
-rwxr-xr-xtools/codegen/core/gen_static_metadata.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/codegen/core/gen_static_metadata.py b/tools/codegen/core/gen_static_metadata.py
index 36c76fada9..98e375127e 100755
--- a/tools/codegen/core/gen_static_metadata.py
+++ b/tools/codegen/core/gen_static_metadata.py
@@ -367,9 +367,13 @@ an explanation of what's going on.
print >> H, '#ifndef GRPC_CORE_LIB_TRANSPORT_STATIC_METADATA_H'
print >> H, '#define GRPC_CORE_LIB_TRANSPORT_STATIC_METADATA_H'
print >> H
+print >> H, '#include <grpc/impl/codegen/port_platform.h>'
+print >> H
print >> H, '#include "src/core/lib/transport/metadata.h"'
print >> H
+print >> C, '#include <grpc/impl/codegen/port_platform.h>'
+print >> C
print >> C, '#include "src/core/lib/transport/static_metadata.h"'
print >> C
print >> C, '#include "src/core/lib/slice/slice_internal.h"'