X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=test_tls.c;h=1e805c3e67118d57a18a1f381f9c0ccbd14794a6;hb=9d390a3369bfc121d7fe83f49c12828f0413af67;hp=b1d0865fd365433d3912d26c0ef04f79c024f0e0;hpb=55f0eb1b77c1c1bfc387927bad06210257f50f21;p=openssl-gost%2Fengine.git diff --git a/test_tls.c b/test_tls.c index b1d0865..1e805c3 100644 --- a/test_tls.c +++ b/test_tls.c @@ -8,6 +8,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include "e_gost_err.h" #include "gost_lcl.h" #include @@ -35,17 +40,17 @@ # pragma GCC diagnostic ignored "-Wpointer-sign" #endif -#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"