Commit df4730ca authored by Florian Enner's avatar Florian Enner

fixed MSVC compile error

<stdint.h> is not part of the standard, so I've added a workaround.
parent ec53b8cb
...@@ -46,6 +46,12 @@ namespace protobuf { ...@@ -46,6 +46,12 @@ namespace protobuf {
namespace compiler { namespace compiler {
namespace ruby { 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. // Forward decls.
std::string IntToString(uint32_t value); std::string IntToString(uint32_t value);
std::string StripDotProto(const std::string& proto_file); std::string StripDotProto(const std::string& proto_file);
......
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