From 0e1d81e63fb5058391ba7fcefd40a50f6fc8bd7b Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 2 Aug 2019 06:16:41 -0700 Subject: [PATCH] Added ability to define your own `XATOI` --- wolfssl/wolfcrypt/types.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 6e96dd27c..16cc20f14 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -485,8 +485,10 @@ defined(HAVE_CRL_IO) || defined(HAVE_HTTP_CLIENT) || \ !defined(NO_CRYPT_BENCHMARK) - #include - #define XATOI(s) atoi((s)) + #ifndef XATOI /* if custom XATOI is not already defined */ + #include + #define XATOI(s) atoi((s)) + #endif #endif #endif