diff options
author | Shauren <shauren.trinity@gmail.com> | 2017-09-23 23:11:18 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2017-09-23 23:11:18 +0200 |
commit | ee7f598e19f76c8c71dc9c748b5d0a09b54b0c66 (patch) | |
tree | 1b1cb1c6fa98aa03d81cd05b7475b8d58f6d59b9 /contrib/protoc-bnet/BnetFileGenerator.cpp | |
parent | 65af89e4e61e20525d1d85a5f952a827132f682d (diff) |
Contrib: Updated protobuf service generator with latest async handling changes
Diffstat (limited to 'contrib/protoc-bnet/BnetFileGenerator.cpp')
-rw-r--r-- | contrib/protoc-bnet/BnetFileGenerator.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/protoc-bnet/BnetFileGenerator.cpp b/contrib/protoc-bnet/BnetFileGenerator.cpp index 912a3d75a78..1afe3edbd25 100644 --- a/contrib/protoc-bnet/BnetFileGenerator.cpp +++ b/contrib/protoc-bnet/BnetFileGenerator.cpp @@ -354,16 +354,14 @@ void BnetFileGenerator::GenerateSource(pb::io::Printer* printer) printer->Print("#include \"Log.h\"\n"); if (file_->service_count() > 0) + { + printer->Print("#include \"Errors.h\"\n"); printer->Print("#include \"BattlenetRpcErrorCodes.h\"\n"); + } printer->Print( "// @@protoc_insertion_point(includes)\n"); - printer->Print("\n// Fix stupid windows.h included from Log.h->Common.h\n"); - printer->Print("#ifdef SendMessage\n"); - printer->Print("#undef SendMessage\n"); - printer->Print("#endif\n"); - GenerateNamespaceOpeners(printer); if (pbcpp::HasDescriptorMethods(file_)) |