From c0a57e27f709d2e592d1bd98b30f845cc0056e1d Mon Sep 17 00:00:00 2001 From: YOUR_NAME Date: Thu, 23 Sep 2021 15:32:51 +0800 Subject: [PATCH] modify codex Signed-off-by: YOUR_NAME --- 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 72ce2eb82..680807f76 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