Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 726034471
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Feb 12, 2025
1 parent 96ee7ce commit 23c804f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/google/protobuf/compiler/cpp/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "google/protobuf/io/printer.h"

// Must be last.
#include "google/protobuf/port.h"
#include "google/protobuf/port_def.inc"

namespace google {
Expand Down Expand Up @@ -254,8 +255,10 @@ void FileGenerator::GenerateSharedHeaderCode(io::Printer* p) {
{"messages", [&] { GenerateMessageDefinitions(p); }},
{"services", [&] { GenerateServiceDefinitions(p); }},
{"extensions", [&] { GenerateExtensionIdentifiers(p); }},
{"inline_fns",
[&] { GenerateInlineFunctionDefinitions(p); }},
{"inline_defs",
[&] {
GenerateInlineFunctionDefinitions(p);
}},
},
R"(
$enums$
Expand All @@ -272,7 +275,7 @@ void FileGenerator::GenerateSharedHeaderCode(io::Printer* p) {
$hrule_thick$
$inline_fns$
$inline_defs$
// @@protoc_insertion_point(namespace_scope)
)");
Expand Down Expand Up @@ -1651,6 +1654,7 @@ void FileGenerator::GenerateLibraryIncludes(io::Printer* p) {
if (HasGeneratedMethods(file_, options_)) {
IncludeFile("third_party/protobuf/generated_message_tctable_decl.h", p);
}

IncludeFile("third_party/protobuf/generated_message_util.h", p);
IncludeFile("third_party/protobuf/metadata_lite.h", p);

Expand Down
1 change: 1 addition & 0 deletions src/google/protobuf/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ class alignas(8) GlobalEmptyString {
PROTOBUF_EXPORT extern GlobalEmptyString fixed_address_empty_string;
#endif


} // namespace internal
} // namespace protobuf
} // namespace google
Expand Down

0 comments on commit 23c804f

Please sign in to comment.