unbreak with clang6
This commit is contained in:
parent
d569db0d84
commit
450f73d8f2
@ -0,0 +1,26 @@
|
||||
$OpenBSD: patch-src_google_protobuf_compiler_command_line_interface_cc,v 1.1 2018/04/08 08:35:14 jasper Exp $
|
||||
|
||||
Unbreak with clang6
|
||||
https://github.com/google/protobuf/commit/5a76e633ea9b5adb215e93fdc11e1c0c08b3fc74
|
||||
|
||||
Index: src/google/protobuf/compiler/command_line_interface.cc
|
||||
--- src/google/protobuf/compiler/command_line_interface.cc.orig
|
||||
+++ src/google/protobuf/compiler/command_line_interface.cc
|
||||
@@ -781,7 +781,7 @@ bool CommandLineInterface::ParseArguments(int argc, co
|
||||
|
||||
// If no --proto_path was given, use the current working directory.
|
||||
if (proto_path_.empty()) {
|
||||
- proto_path_.push_back(make_pair<string, string>("", "."));
|
||||
+ proto_path_.push_back(std::pair<string, string>("", "."));
|
||||
}
|
||||
|
||||
// Check some errror cases.
|
||||
@@ -910,7 +910,7 @@ bool CommandLineInterface::InterpretArgument(const str
|
||||
cerr << disk_path << ": warning: directory does not exist." << endl;
|
||||
}
|
||||
|
||||
- proto_path_.push_back(make_pair<string, string>(virtual_path, disk_path));
|
||||
+ proto_path_.push_back(std::pair<string, string>(virtual_path, disk_path));
|
||||
}
|
||||
|
||||
} else if (name == "-o" || name == "--descriptor_set_out") {
|
Loading…
x
Reference in New Issue
Block a user