Fix codegen script to include port_platform

reviewable/pr16488/r7
Hope Casey-Allen 6 years ago
parent fbe594beeb
commit 4a9cd9c38b
  1. 2
      src/core/lib/transport/static_metadata.cc
  2. 2
      src/core/lib/transport/static_metadata.h
  3. 4
      tools/codegen/core/gen_static_metadata.py

@ -24,6 +24,8 @@
* an explanation of what's going on.
*/
#include <grpc/impl/codegen/port_platform.h>
#include "src/core/lib/transport/static_metadata.h"
#include "src/core/lib/slice/slice_internal.h"

@ -27,6 +27,8 @@
#ifndef GRPC_CORE_LIB_TRANSPORT_STATIC_METADATA_H
#define GRPC_CORE_LIB_TRANSPORT_STATIC_METADATA_H
#include <grpc/impl/codegen/port_platform.h>
#include "src/core/lib/transport/metadata.h"
#define GRPC_STATIC_MDSTR_COUNT 105

@ -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"'

Loading…
Cancel
Save