From: Alexandr Nedvedicky Date: Mon, 6 Oct 2025 07:33:09 +0000 (+0200) Subject: OPENSSL_SYS_WINDOWS is also enabled for mingw build X-Git-Tag: 4.0-PRE-CLANG-FORMAT-WEBKIT~392 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af3a3f8205968f9e652efa7adf2a359f4eb9d9cc;p=thirdparty%2Fopenssl.git OPENSSL_SYS_WINDOWS is also enabled for mingw build the test_n() in bioprinttest.c must differentiate between MSVC runtime libc and ming runtime libc. The function _set_printf_count_output() must be called when openssl is linked with MSVC libc only. Fixes #28679 Reviewed-by: Bernd Edlinger Reviewed-by: Tom Cosgrove Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/28759) --- diff --git a/test/bioprinttest.c b/test/bioprinttest.c index bd99b9820ec..28730631bc2 100644 --- a/test/bioprinttest.c +++ b/test/bioprinttest.c @@ -541,7 +541,7 @@ static int test_n(int i) ptrdiff_t t; } n = { 0 }; -#if defined(OPENSSL_SYS_WINDOWS) +#if defined(_set_printf_count_output) /* * MS CRT is special and throws an exception when %n is used even * in non-*_s versions of printf routines, and there is a special function