From 5c3034670da38ee2d42dec42b4c5a5df1815e843 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 28 Sep 2015 02:53:52 -0700 Subject: [PATCH] Sadly, g++ doesn't let me cast empty initializers. --- ldid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldid.cpp b/ldid.cpp index ffc2821..68fdf7d 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -73,7 +73,8 @@ int error(errno); \ if (error == EINTR) \ continue; \ - for (auto success : (long[]) {__VA_ARGS__}) \ + /* XXX: EINTR is included in this list to fix g++ */ \ + for (auto success : (long[]) {EINTR, __VA_ARGS__}) \ if (error == success) \ return (decltype(expr)) -success; \ _assert_(false, "errno=%u", error); \ -- 2.45.2