diff --git a/include/mbedtls/padlock.h b/include/mbedtls/padlock.h index 13c65fcccd48..076fd6069f28 100644 --- a/include/mbedtls/padlock.h +++ b/include/mbedtls/padlock.h @@ -123,6 +123,7 @@ int mbedtls_padlock_xcryptcbc(mbedtls_aes_context *ctx, } #endif -#endif /* MBEDTLS_VIA_PADLOCK_HAVE_CODE */ +#endif /* MBEDTLS_PADLOCK_C && MBEDTLS_HAVE_ASM && + __GNUC__ && __i386__ && !MBEDTLS_HAVE_ASAN */ #endif /* padlock.h */