We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf3e2c commit e0238dfCopy full SHA for e0238df
compiler/src/java_plugin/cpp/java_generator.cpp
@@ -22,11 +22,18 @@
22
#include <map>
23
#include <set>
24
#include <vector>
25
-#include <google/protobuf/compiler/java/java_names.h>
26
#include <google/protobuf/descriptor.h>
27
#include <google/protobuf/descriptor.pb.h>
28
#include <google/protobuf/io/printer.h>
29
#include <google/protobuf/io/zero_copy_stream.h>
+#include <google/protobuf/stubs/common.h>
30
+
31
+// Protobuf 3.21 changed the name of this file.
32
+#if GOOGLE_PROTOBUF_VERSION >= 3021000
33
+ #include <google/protobuf/compiler/java/names.h>
34
+#else
35
+ #include <google/protobuf/compiler/java/java_names.h>
36
+#endif
37
38
// Stringify helpers used solely to cast GRPC_VERSION
39
#ifndef STR
0 commit comments