Commit a22bc812 authored by Feng Xiao's avatar Feng Xiao

Merge pull request #186 from ennerf/win32-msvc-fix

MSVC protoc compiler fix
parents 17e44191 e544b388
...@@ -47,7 +47,7 @@ namespace compiler { ...@@ -47,7 +47,7 @@ namespace compiler {
namespace ruby { namespace ruby {
// Forward decls. // Forward decls.
std::string IntToString(uint32_t value); std::string IntToString(uint32 value);
std::string StripDotProto(const std::string& proto_file); std::string StripDotProto(const std::string& proto_file);
std::string LabelForField(google::protobuf::FieldDescriptor* field); std::string LabelForField(google::protobuf::FieldDescriptor* field);
std::string TypeName(google::protobuf::FieldDescriptor* field); std::string TypeName(google::protobuf::FieldDescriptor* field);
...@@ -64,7 +64,7 @@ void GenerateEnumAssignment( ...@@ -64,7 +64,7 @@ void GenerateEnumAssignment(
const google::protobuf::EnumDescriptor* en, const google::protobuf::EnumDescriptor* en,
google::protobuf::io::Printer* printer); google::protobuf::io::Printer* printer);
std::string IntToString(uint32_t value) { std::string IntToString(uint32 value) {
std::ostringstream os; std::ostringstream os;
os << value; os << value;
return os.str(); return os.str();
......
...@@ -223,6 +223,10 @@ ...@@ -223,6 +223,10 @@
RelativePath="..\src\google\protobuf\compiler\cpp\cpp_string_field.h" RelativePath="..\src\google\protobuf\compiler\cpp\cpp_string_field.h"
> >
</File> </File>
<File
RelativePath="..\src\google\protobuf\compiler\ruby\ruby_generator.h"
>
</File>
<File <File
RelativePath="..\src\google\protobuf\compiler\java\java_context.h" RelativePath="..\src\google\protobuf\compiler\java\java_context.h"
> >
...@@ -375,6 +379,10 @@ ...@@ -375,6 +379,10 @@
RelativePath="..\src\google\protobuf\compiler\cpp\cpp_string_field.cc" RelativePath="..\src\google\protobuf\compiler\cpp\cpp_string_field.cc"
> >
</File> </File>
<File
RelativePath="..\src\google\protobuf\compiler\ruby\ruby_generator.cc"
>
</File>
<File <File
RelativePath="..\src\google\protobuf\compiler\java\java_context.cc" RelativePath="..\src\google\protobuf\compiler\java\java_context.cc"
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment