Skip to content

Commit 6aa3cd6

Browse files
committed
wc_port: guard stddef header include.
1 parent c098e53 commit 6aa3cd6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

wolfssl/wolfcrypt/settings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3954,6 +3954,7 @@ extern void uITRON4_free(void *p) ;
39543954
#undef HAVE_LIMITS_H
39553955
#define NO_STRING_H
39563956
#define NO_LIMITS_H
3957+
#define NO_STDDEF_H
39573958
#define NO_STDLIB_H
39583959
#define NO_STDINT_H
39593960
#define NO_CTYPE_H

wolfssl/wolfcrypt/wc_port.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,9 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
17271727

17281728
#if (!defined(WOLFSSL_LEANPSK) && !defined(STRING_USER)) || \
17291729
defined(USE_WOLF_STRNSTR)
1730-
#include <stddef.h> /* for size_t */
1730+
#ifndef NO_STDDEF_H
1731+
#include <stddef.h> /* for size_t */
1732+
#endif /* NO_STDDEF_H */
17311733
WOLFSSL_TEST_VIS char* wolfSSL_strnstr(const char* s1, const char* s2, size_t n);
17321734
#endif
17331735

0 commit comments

Comments
 (0)