compiler: Use public headers instead of pb.h

Using the pb.h causes trouble when dealing with internal vs external
protobuf (as seen in cl/142286800).
This commit is contained in:
Eric Anderson 2016-12-20 14:22:11 -08:00
parent 04f216f072
commit 09fd43df4e
2 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include <map> #include <map>
#include <vector> #include <vector>
#include <google/protobuf/compiler/java/java_names.h> #include <google/protobuf/compiler/java/java_names.h>
#include <google/protobuf/descriptor.pb.h> #include <google/protobuf/descriptor.h>
#include <google/protobuf/io/printer.h> #include <google/protobuf/io/printer.h>
#include <google/protobuf/io/zero_copy_stream.h> #include <google/protobuf/io/zero_copy_stream.h>

View File

@ -9,7 +9,6 @@
#include <google/protobuf/compiler/code_generator.h> #include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/compiler/plugin.h> #include <google/protobuf/compiler/plugin.h>
#include <google/protobuf/descriptor.h> #include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/io/zero_copy_stream.h> #include <google/protobuf/io/zero_copy_stream.h>
static string JavaPackageToDir(const string& package_name) { static string JavaPackageToDir(const string& package_name) {