From ee7f598e19f76c8c71dc9c748b5d0a09b54b0c66 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 23 Sep 2017 23:11:18 +0200 Subject: Contrib: Updated protobuf service generator with latest async handling changes --- contrib/protoc-bnet/BnetFileGenerator.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'contrib/protoc-bnet/BnetFileGenerator.cpp') 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_)) -- cgit v1.2.3