Skip to content

Commit 0c70d95

Browse files
owentfowles
authored andcommitted
Add dllexport_decl for generated default instance. (#13085)
Fixes #13084 Closes #13085 COPYBARA_INTEGRATE_REVIEW=#13085 from owent:add_dllexport_decl_for_generated_default_instance a46d4e8 PiperOrigin-RevId: 540938351
1 parent 528e673 commit 0c70d95

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

src/google/protobuf/compiler/cpp/file.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ void FileGenerator::GenerateSourceDefaultInstance(int idx, io::Printer* p) {
556556
};
557557
};
558558
559-
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
559+
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT$ dllexport_decl$
560560
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const $type$ $name$;
561561
)cc");
562562
}
@@ -579,7 +579,7 @@ void FileGenerator::GenerateSourceDefaultInstance(int idx, io::Printer* p) {
579579
};
580580
};
581581
582-
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
582+
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT$ dllexport_decl$
583583
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 $type$ $name$;
584584
)cc");
585585

src/google/protobuf/compiler/plugin.pb.cc

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/google/protobuf/descriptor.pb.cc

+28-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)