mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Only require XATOI for build-cases that need it.
This commit is contained in:
@ -401,9 +401,6 @@
|
||||
#define XSTRNCMP(s1,s2,n) strncmp((s1),(s2),(n))
|
||||
#define XSTRNCAT(s1,s2,n) strncat((s1),(s2),(n))
|
||||
|
||||
#include <stdlib.h>
|
||||
#define XATOI(s) atoi((s))
|
||||
|
||||
#ifdef USE_WOLF_STRSEP
|
||||
#define XSTRSEP(s1,d) wc_strsep((s1),(d))
|
||||
#else
|
||||
@ -483,6 +480,14 @@
|
||||
#define XSTRTOK(s1,d,ptr) strtok_r((s1),(d),(ptr))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(WOLFSSL_CERT_EXT) || defined(HAVE_OCSP) || \
|
||||
defined(HAVE_CRL_IO) || defined(HAVE_HTTP_CLIENT) || \
|
||||
!defined(NO_CRYPT_BENCHMARK)
|
||||
|
||||
#include <stdlib.h>
|
||||
#define XATOI(s) atoi((s))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_WOLF_STRTOK
|
||||
|
Reference in New Issue
Block a user