From: Jay Freeman (saurik) Date: Mon, 28 Sep 2015 09:53:52 +0000 (-0700) Subject: Sadly, g++ doesn't let me cast empty initializers. X-Git-Tag: v2.1.0~77 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/5c3034670da38ee2d42dec42b4c5a5df1815e843 Sadly, g++ doesn't let me cast empty initializers. --- 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); \