Skip to content

Commit

Permalink
Merge pull request #186 from ennerf/win32-msvc-fix
Browse files Browse the repository at this point in the history
MSVC protoc compiler fix
  • Loading branch information
xfxyjwf committed Feb 3, 2015
2 parents 17e4419 + e544b38 commit a22bc81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/compiler/ruby/ruby_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace compiler {
namespace ruby {

// Forward decls.
std::string IntToString(uint32_t value);
std::string IntToString(uint32 value);
std::string StripDotProto(const std::string& proto_file);
std::string LabelForField(google::protobuf::FieldDescriptor* field);
std::string TypeName(google::protobuf::FieldDescriptor* field);
Expand All @@ -64,7 +64,7 @@ void GenerateEnumAssignment(
const google::protobuf::EnumDescriptor* en,
google::protobuf::io::Printer* printer);

std::string IntToString(uint32_t value) {
std::string IntToString(uint32 value) {
std::ostringstream os;
os << value;
return os.str();
Expand Down
8 changes: 8 additions & 0 deletions vsprojects/libprotoc.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@
RelativePath="..\src\google\protobuf\compiler\cpp\cpp_string_field.h"
>
</File>
<File
RelativePath="..\src\google\protobuf\compiler\ruby\ruby_generator.h"
>
</File>
<File
RelativePath="..\src\google\protobuf\compiler\java\java_context.h"
>
Expand Down Expand Up @@ -375,6 +379,10 @@
RelativePath="..\src\google\protobuf\compiler\cpp\cpp_string_field.cc"
>
</File>
<File
RelativePath="..\src\google\protobuf\compiler\ruby\ruby_generator.cc"
>
</File>
<File
RelativePath="..\src\google\protobuf\compiler\java\java_context.cc"
>
Expand Down

0 comments on commit a22bc81

Please sign in to comment.