From e38e0422b6e0d386699360c3b568f421ab2f48f6 Mon Sep 17 00:00:00 2001 From: Maplestory_zeng Date: Thu, 23 Sep 2021 11:12:29 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!17=20:?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81codex=E9=97=AE=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/dfx_define.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/dfx_define.h b/common/dfx_define.h index 680807f76..72ce2eb82 100644 --- a/common/dfx_define.h +++ b/common/dfx_define.h @@ -22,14 +22,14 @@ #if defined(TEMP_FAILURE_RETRY) #undef TEMP_FAILURE_RETRY -#define TEMP_FAILURE_RETRY(exp) \ - []() { \ - long int _rc; \ - do { \ - _rc = (long int)(exp); \ - } while ((_rc == -1) && (errno == EINTR)); \ - _rc; \ - }() +#define TEMP_FAILURE_RETRY(exp) \ + ({ \ + long int _rc; \ + do { \ + _rc = (long int)(exp); \ + } while ((_rc == -1) && (errno == EINTR)); \ + _rc; \ + }) #endif #endif \ No newline at end of file -- Gitee