Fix MINGW compilation

This patch fixes
  undefined reference to `ossl_BIO_snprintf_msvc'

Define it only if MSVC is used.

Signed-off-by: Milan Broz <gmazyland@gmail.com>

Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Wed Mar 25 14:12:58 2026
(Merged from https://github.com/openssl/openssl/pull/30541)
This commit is contained in:
Milan Broz
2026-03-23 16:15:06 +01:00
committed by Tomas Mraz
parent 94c36852d2
commit 5f084f8a99
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ int ossl_core_bio_vprintf(OSSL_CORE_BIO *cb, const char *format, va_list args);
int ossl_bio_init_core(OSSL_LIB_CTX *libctx, const OSSL_DISPATCH *fns);
#ifdef _WIN32
#ifdef _MSC_VER
int ossl_BIO_snprintf_msvc(char *buf, size_t n, const char *fmt, ...);
#endif