From 9018ac978db99a3d39f526013049680bbd6c3678 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 26 Mar 2016 17:23:35 +0100 Subject: Core/Shared: Added generated protobuf sources --- contrib/protoc-bnet/BnetFileGenerator.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contrib/protoc-bnet/BnetFileGenerator.cpp') diff --git a/contrib/protoc-bnet/BnetFileGenerator.cpp b/contrib/protoc-bnet/BnetFileGenerator.cpp index 92f836fad31..24e3a6ef63b 100644 --- a/contrib/protoc-bnet/BnetFileGenerator.cpp +++ b/contrib/protoc-bnet/BnetFileGenerator.cpp @@ -173,6 +173,9 @@ void BnetFileGenerator::GenerateHeader(pb::io::Printer* printer) printer->Print("#include \n"); printer->Print("#include \n"); } + else + printer->Print("#include \"Define.h\" // for TC_SHARED_API\n"); + printer->Print("// @@protoc_insertion_point(includes)\n"); @@ -356,6 +359,11 @@ void BnetFileGenerator::GenerateSource(pb::io::Printer* printer) 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