replaced type fix with the recommended way
This commit is contained in:
parent
df4730ca9c
commit
e1e86b02a8
1 changed files with 2 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue