mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
wolfssl/wolfcrypt/types.h: define USE_WOLF_STRDUP for the fallback definition of XSTRDUP regardless of WOLFSSL_NO_MALLOC (wc_strdup_ex() uses XMALLOC(), which may be a user or static pool allocator).
This commit is contained in:
@ -943,8 +943,7 @@ typedef struct w64wrapper {
|
||||
WOLFSSL_API int wc_strncasecmp(const char *s1, const char *s2, size_t n);
|
||||
#endif
|
||||
|
||||
#if !defined(XSTRDUP) && !defined(USE_WOLF_STRDUP) &&\
|
||||
!defined (WOLFSSL_NO_MALLOC)
|
||||
#if !defined(XSTRDUP) && !defined(USE_WOLF_STRDUP)
|
||||
#define USE_WOLF_STRDUP
|
||||
#endif
|
||||
#ifdef USE_WOLF_STRDUP
|
||||
|
Reference in New Issue
Block a user