Skip to content

Commit 8ef577f

Browse files
authored
fix(GCS+gRPC): restore build on Windows (#13398)
1 parent e27a826 commit 8ef577f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

google/cloud/storage/examples/storage_async_samples.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ void ComposeObject(google::cloud::storage_experimental::AsyncClient& client,
340340

341341
// We would like to call this function `DeleteObject()`, but that conflicts with
342342
// a global `DeleteObject()` function on Windows.
343-
void DeleteObject(google::cloud::storage_experimental::AsyncClient& client,
344-
std::vector<std::string> const& argv) {
343+
void AsyncDeleteObject(google::cloud::storage_experimental::AsyncClient& client,
344+
std::vector<std::string> const& argv) {
345345
//! [delete-object]
346346
namespace g = google::cloud;
347347
namespace gcs_ex = google::cloud::storage_experimental;
@@ -458,7 +458,7 @@ void AutoRun(std::vector<std::string> const& argv) {
458458
}
459459

460460
std::cout << "Running DeleteObject() example" << std::endl;
461-
DeleteObject(client, {bucket_name, object_name});
461+
AsyncDeleteObject(client, {bucket_name, object_name});
462462

463463
namespace g = ::google::cloud;
464464
std::vector<g::future<g::Status>> pending;
@@ -507,7 +507,7 @@ int main(int argc, char* argv[]) try {
507507
make_entry("read-object-with-options", {"<generation>"},
508508
ReadObjectWithOptions),
509509
make_entry("compose-object", {"<o1> <o2>"}, ComposeObject),
510-
make_entry("delete-object", {}, DeleteObject),
510+
make_entry("delete-object", {}, AsyncDeleteObject),
511511
make_entry("write-object", {"<filename>"}, WriteObject),
512512
make_entry("write-object-with-retry", {"<filename>"},
513513
WriteObjectWithRetry),

0 commit comments

Comments
 (0)