From a0d13491d28ee12e1c5517a0684a571be96fc7a5 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Sat, 4 Dec 2021 09:55:55 +0300 Subject: MSVC: No support for GCC's compound statement expressions Error messages: test_ciphers.c(329,5): error C2059: syntax error: '{' test_ciphers.c(329,5): error C2059: syntax error: '}' test_ciphers.c(329,5): error C2059: syntax error: ')' Signed-off-by: Vitaly Chikunov --- test_digest.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'test_digest.c') diff --git a/test_digest.c b/test_digest.c index a931a35..f3d4169 100644 --- a/test_digest.c +++ b/test_digest.c @@ -29,17 +29,17 @@ #endif /* Helpers to test OpenSSL API calls. */ -#define T(e) ({ if (!(e)) { \ - ERR_print_errors_fp(stderr); \ - OpenSSLDie(__FILE__, __LINE__, #e); \ - } \ - }) -#define TE(e) ({ if (!(e)) { \ - ERR_print_errors_fp(stderr); \ - fprintf(stderr, "Error at %s:%d %s\n", __FILE__, __LINE__, #e); \ - return -1; \ - } \ - }) +#define T(e) \ + if (!(e)) { \ + ERR_print_errors_fp(stderr); \ + OpenSSLDie(__FILE__, __LINE__, #e); \ + } +#define TE(e) \ + if (!(e)) { \ + ERR_print_errors_fp(stderr); \ + fprintf(stderr, "Error at %s:%d %s\n", __FILE__, __LINE__, #e); \ + return -1; \ + } #define cRED "\033[1;31m" #define cDRED "\033[0;31m" -- cgit v1.1