wolfssl/wolfcrypt/settings.h: use #warning, not #error, for "No configuration for wolfSSL detected, check header order", to avoid unnecessary breakage of old projects with nonstandard custom settings.

This commit is contained in:
Daniel Pouzzner
2024-12-09 17:04:38 -06:00
parent e248d8499a
commit ba59f1af19

View File

@@ -336,10 +336,10 @@
#include "os/networking/ssl/lite/cyassl_nucleus_defs.h"
#elif !defined(BUILDING_WOLFSSL) && !defined(WOLFSSL_OPTIONS_H) && \
!defined(WOLFSSL_CUSTOM_CONFIG)
/* This error indicates that the settings header may not be included before
/* This warning indicates that the settings header may not be included before
* other wolfSSL headers. If you are using a custom configuration method,
* define WOLFSSL_CUSTOM_CONFIG to override this error. */
#error "No configuration for wolfSSL detected, check header order"
#warning "No configuration for wolfSSL detected, check header order"
#endif
#include <wolfssl/wolfcrypt/visibility.h>