Fix erofs-utils 1.7 compatibility
Test: th
Change-Id: I273fb8937e584fadf8fe7205be75c049a474bdba
diff --git a/common/utils.h b/common/utils.h
index 6c6337f..0c8c13f 100644
--- a/common/utils.h
+++ b/common/utils.h
@@ -642,9 +642,10 @@
}
} deferrer;
-#define TOKENPASTE(x, y) x##y
-#define DEFER \
- auto TOKENPASTE(_deferred_lambda_call, __COUNTER__) = deferrer \
- << [&]() mutable
+#define TOKENPASTE1(x, y) x##y
+#define TOKENPASTE2(x, y) TOKENPASTE1(x, y)
+#define DEFER \
+ auto TOKENPASTE2(_deferred_lambda_call, __COUNTER__) = deferrer \
+ << [&]() mutable
#endif // UPDATE_ENGINE_COMMON_UTILS_H_