Fix from review

This commit is contained in:
Eric Blankenhorn
2024-12-09 12:59:37 -06:00
parent c77bea6691
commit fcce09a4d3
3 changed files with 11 additions and 1 deletions

View File

@ -24,6 +24,9 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
#include <wolfssl/wolfcrypt/settings.h> #include <wolfssl/wolfcrypt/settings.h>
#ifdef MICROCHIP_MPLAB_HARMONY #ifdef MICROCHIP_MPLAB_HARMONY

View File

@ -27,9 +27,12 @@
#include <config.h> #include <config.h>
#endif #endif
/* mc api header */ #ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
#include <wolfssl/wolfcrypt/settings.h> #include <wolfssl/wolfcrypt/settings.h>
/* mc api header */
#include "crypto.h" #include "crypto.h"
/* sanity test against our default implementation, wolfssl headers */ /* sanity test against our default implementation, wolfssl headers */

View File

@ -319,6 +319,10 @@
#endif #endif
#endif #endif
#if defined(BUILDING_WOLFSSL) && defined(WOLFSSL_OPTIONS_H)
#error wolfssl/options.h included in build of library object.
#endif
#ifdef WOLFSSL_USER_SETTINGS #ifdef WOLFSSL_USER_SETTINGS
#include "user_settings.h" #include "user_settings.h"
#elif defined(USE_HAL_DRIVER) && !defined(HAVE_CONFIG_H) #elif defined(USE_HAL_DRIVER) && !defined(HAVE_CONFIG_H)