diff options
author | Florian Enner <florian@enner.org> | 2015-01-31 19:22:52 -0500 |
---|---|---|
committer | Florian Enner <florian@enner.org> | 2015-01-31 19:22:52 -0500 |
commit | e1e86b02a8569f522a867d55c42e5ac5664fc86e (patch) | |
tree | 9ebb4c17602db91bc8448f6c7840f740736ce84c /src/google | |
parent | df4730ca9c093a8551b2a9ee7ba0f3098796aeb8 (diff) | |
download | protobuf-e1e86b02a8569f522a867d55c42e5ac5664fc86e.tar.gz protobuf-e1e86b02a8569f522a867d55c42e5ac5664fc86e.tar.bz2 protobuf-e1e86b02a8569f522a867d55c42e5ac5664fc86e.zip |
replaced type fix with the recommended way
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/ruby/ruby_generator.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/google/protobuf/compiler/ruby/ruby_generator.cc b/src/google/protobuf/compiler/ruby/ruby_generator.cc index bb88fc16..da2e7e89 100644 --- a/src/google/protobuf/compiler/ruby/ruby_generator.cc +++ b/src/google/protobuf/compiler/ruby/ruby_generator.cc @@ -45,15 +45,9 @@ namespace google { namespace protobuf { namespace compiler { namespace ruby { - -#if _MSC_VER >= 1400 // VS 2005 and above - // <stdint.h> is not part of the standard, so we need to map - // to MSVC's custom sized integer types instead. - typedef unsigned __int32 uint32_t; -#endif // 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); @@ -70,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(); |