Merge pull request #2398 from jbrianceau/no-static-init-define-fix
C++: Fix use with GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
This commit is contained in:
commit
b7632464b4
1 changed files with 1 additions and 1 deletions
|
@ -722,7 +722,7 @@ void FileGenerator::GenerateBuildDescriptors(io::Printer* printer) {
|
|||
"adddescriptorsname", GlobalAddDescriptorsName(file_->name()));
|
||||
|
||||
if (!StaticInitializersForced(file_, options_)) {
|
||||
printer->Print("#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER\n");
|
||||
printer->Print("#ifndef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER\n");
|
||||
}
|
||||
printer->Print(
|
||||
// With static initializers.
|
||||
|
|
Loading…
Add table
Reference in a new issue