diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-03-26 17:23:35 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-03-26 17:23:35 +0100 |
commit | 9018ac978db99a3d39f526013049680bbd6c3678 (patch) | |
tree | 98705818ff95d9d71642f31e7c5a20002b9d5728 /contrib/protoc-bnet/BnetFileGenerator.cpp | |
parent | a81a204678f4cbd8b8a53333600f50f0b494706a (diff) |
Core/Shared: Added generated protobuf sources
Diffstat (limited to 'contrib/protoc-bnet/BnetFileGenerator.cpp')
-rw-r--r-- | contrib/protoc-bnet/BnetFileGenerator.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 <functional>\n"); printer->Print("#include <type_traits>\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_)) |