diff options
author | Tres Seaver <tseaver@palladion.com> | 2014-11-17 11:25:05 -0500 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2014-11-17 11:26:45 -0500 |
commit | 83671c0514741a64433dd86a958e3df6bf9508c6 (patch) | |
tree | 5461fbc7cd22fc38d307d58d21ead7d7321d3c50 /src/google/protobuf/compiler/plugin.pb.h | |
parent | faf581d20866ad5e586b3e515f6c547d2dcec2c1 (diff) | |
download | protobuf-83671c0514741a64433dd86a958e3df6bf9508c6.tar.gz protobuf-83671c0514741a64433dd86a958e3df6bf9508c6.tar.bz2 protobuf-83671c0514741a64433dd86a958e3df6bf9508c6.zip |
Don't rely on non-standard 'INT32_MAX' / 'INT32_MIN'.
Define safe constants to use when padding enums.
Fixes #80.
Diffstat (limited to 'src/google/protobuf/compiler/plugin.pb.h')
-rw-r--r-- | src/google/protobuf/compiler/plugin.pb.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/plugin.pb.h b/src/google/protobuf/compiler/plugin.pb.h index 636992a6..b752d6a1 100644 --- a/src/google/protobuf/compiler/plugin.pb.h +++ b/src/google/protobuf/compiler/plugin.pb.h @@ -5,7 +5,12 @@ #define PROTOBUF_google_2fprotobuf_2fcompiler_2fplugin_2eproto__INCLUDED #include <string> -#include <stdint.h> +#ifndef PROTOBUF_ENUM_MIN +#define PROTOBUF_ENUM_MIN (int32_t)0x80000000 +#endif +#ifndef PROTOBUF_ENUM_MAX +#define PROTOBUF_ENUM_MAX (int32_t)0x7fffffff +#endif #include <google/protobuf/stubs/common.h> |