mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +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);
|
WOLFSSL_API int wc_strncasecmp(const char *s1, const char *s2, size_t n);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(XSTRDUP) && !defined(USE_WOLF_STRDUP) &&\
|
#if !defined(XSTRDUP) && !defined(USE_WOLF_STRDUP)
|
||||||
!defined (WOLFSSL_NO_MALLOC)
|
|
||||||
#define USE_WOLF_STRDUP
|
#define USE_WOLF_STRDUP
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_WOLF_STRDUP
|
#ifdef USE_WOLF_STRDUP
|
||||||
|
Reference in New Issue
Block a user