diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 97959113b2..cf9884c373 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -322,10 +322,11 @@ #endif #endif -#if (defined(BUILDING_WOLFSSL) && defined(WOLFSSL_USE_OPTIONS_H)) || \ - (defined(BUILDING_WOLFSSL) && defined(WOLFSSL_OPTIONS_H) && \ - !defined(EXTERNAL_OPTS_OPENVPN)) - #error wolfssl/options.h included in compiled wolfssl library object. +#if !defined(WOLFSSL_CUSTOM_CONFIG) && \ + ((defined(BUILDING_WOLFSSL) && defined(WOLFSSL_USE_OPTIONS_H)) || \ + (defined(BUILDING_WOLFSSL) && defined(WOLFSSL_OPTIONS_H) && \ + !defined(EXTERNAL_OPTS_OPENVPN))) + #warning wolfssl/options.h included in compiled wolfssl library object. #endif #ifdef WOLFSSL_USER_SETTINGS