From 8b2aafe7d3f59463fb8693421c09bfefb3bd0104 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Mon, 17 Nov 2014 19:35:04 -0500 Subject: Use 'kint32min'/'kint32max' constants, rather than defining locally. Incorporates feedback from @xfxyjwf: https://github.com/google/protobuf/pull/84#discussion_r20474781. --- src/google/protobuf/compiler/cpp/cpp_file.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/google/protobuf/compiler/cpp/cpp_file.cc') 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 \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); -- cgit v1.2.3