From 94289c0c9ec12829e973ecad2cfe37d0e4133db6 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 18 Feb 2022 23:25:23 +0300 Subject: [PATCH] Fix SCOPE_EXIT redefinition. --- benchmark/hashmap_build.cpp | 4 ++++ benchmark/hashset_memory.cpp | 4 ++++ tdutils/test/hashset_benchmark.cpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/benchmark/hashmap_build.cpp b/benchmark/hashmap_build.cpp index 479761728..7d63acb71 100644 --- a/benchmark/hashmap_build.cpp +++ b/benchmark/hashmap_build.cpp @@ -6,6 +6,10 @@ // #include "td/utils/FlatHashMap.h" +#ifdef SCOPE_EXIT +#undef SCOPE_EXIT +#endif + #include #include #include diff --git a/benchmark/hashset_memory.cpp b/benchmark/hashset_memory.cpp index ab453faaa..ce0214325 100644 --- a/benchmark/hashset_memory.cpp +++ b/benchmark/hashset_memory.cpp @@ -16,6 +16,10 @@ #include "td/utils/Slice.h" #include "td/utils/StringBuilder.h" +#ifdef SCOPE_EXIT +#undef SCOPE_EXIT +#endif + #include #include #include diff --git a/tdutils/test/hashset_benchmark.cpp b/tdutils/test/hashset_benchmark.cpp index 5b95cfb1a..7b9d8ce0d 100644 --- a/tdutils/test/hashset_benchmark.cpp +++ b/tdutils/test/hashset_benchmark.cpp @@ -17,6 +17,10 @@ #include "td/utils/Time.h" #include "td/utils/VectorQueue.h" +#ifdef SCOPE_EXIT +#undef SCOPE_EXIT +#endif + #include #include #include