Skip to content

Commit

Permalink
Update to handle rename of java_names.h to names.h in protobuf upstre…
Browse files Browse the repository at this point in the history
…am (grpc#9218)
  • Loading branch information
jvolkman authored and ejona86 committed May 31, 2022
1 parent 540be7f commit 059e1dc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion compiler/src/java_plugin/cpp/java_generator.cpp
Expand Up @@ -22,11 +22,18 @@
#include <map>
#include <set>
#include <vector>
#include <google/protobuf/compiler/java/java_names.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/io/printer.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <google/protobuf/stubs/common.h>

// Protobuf 3.21 changed the name of this file.
#if GOOGLE_PROTOBUF_VERSION >= 3021000
#include <google/protobuf/compiler/java/names.h>
#else
#include <google/protobuf/compiler/java/java_names.h>
#endif

// Stringify helpers used solely to cast GRPC_VERSION
#ifndef STR
Expand Down

0 comments on commit 059e1dc

Please sign in to comment.