diff --git a/crypto/fipsmodule/self_check/self_check.c b/crypto/fipsmodule/self_check/self_check.c index 39570bd1e..2a58cd359 100644 --- a/crypto/fipsmodule/self_check/self_check.c +++ b/crypto/fipsmodule/self_check/self_check.c @@ -38,8 +38,14 @@ // MSVC wants to put a NUL byte at the end of non-char arrays and so cannot -// compile this. -#if !defined(_MSC_VER) +// compile the real logic. +#if defined(_MSC_VER) + +int BORINGSSL_self_test(void) { + return 0; +} + +#else #if defined(BORINGSSL_FIPS) && defined(OPENSSL_ANDROID) // FIPS builds on Android will test for flag files, named after the module hash,