aboutsummaryrefslogtreecommitdiff
path: root/contrib/protoc-bnet/BnetFileGenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/protoc-bnet/BnetFileGenerator.cpp')
-rw-r--r--contrib/protoc-bnet/BnetFileGenerator.cpp8
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_))