diff options
author | Tres Seaver <tseaver@palladion.com> | 2014-11-17 19:35:04 -0500 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2014-11-17 19:35:04 -0500 |
commit | 8b2aafe7d3f59463fb8693421c09bfefb3bd0104 (patch) | |
tree | 803aec712c672d78cf930889977df651269d33d7 /src/google/protobuf/compiler/cpp/cpp_file.cc | |
parent | 83671c0514741a64433dd86a958e3df6bf9508c6 (diff) |
Use 'kint32min'/'kint32max' constants, rather than defining locally.
Incorporates feedback from @xfxyjwf:
https://github.com/google/protobuf/pull/84#discussion_r20474781.
Diffstat (limited to 'src/google/protobuf/compiler/cpp/cpp_file.cc')
-rw-r--r-- | src/google/protobuf/compiler/cpp/cpp_file.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_file.cc b/src/google/protobuf/compiler/cpp/cpp_file.cc index 6b265dc6..6dc88e88 100644 --- a/src/google/protobuf/compiler/cpp/cpp_file.cc +++ b/src/google/protobuf/compiler/cpp/cpp_file.cc @@ -105,12 +105,6 @@ void FileGenerator::GenerateHeader(io::Printer* printer) { "#define PROTOBUF_$filename_identifier$__INCLUDED\n" "\n" "#include <string>\n" - "#ifndef PROTOBUF_ENUM_MIN\n" - "#define PROTOBUF_ENUM_MIN (int32_t)0x80000000\n" - "#endif\n" - "#ifndef PROTOBUF_ENUM_MAX\n" - "#define PROTOBUF_ENUM_MAX (int32_t)0x7fffffff\n" - "#endif\n" "\n", "filename", file_->name(), "filename_identifier", filename_identifier); |