Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28759)
ptrdiff_t t;
} n = { 0 };
-#if defined(_set_printf_count_output)
+#if defined(OPENSSL_SYS_WINDOWS) && !defined(__MINGW32__) && \
+ !defined(__CYGWIN__)
/*
* 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