From 3df565475acc0f0381ebd618b07374b527184b16 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Fri, 2 Jun 2017 09:26:40 -0600 Subject: [PATCH] protect mystrnstr prototype with WOLFSSL_LEANPSK instead of STRING_USER --- wolfssl/wolfcrypt/types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 044fcfd06..e73152682 100755 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -286,11 +286,12 @@ #define FREE_ARRAY(VAR_NAME, VAR_ITEMS, HEAP) /* nothing to free, its stack */ #endif + #ifndef WOLFSSL_LEANPSK + char* mystrnstr(const char* s1, const char* s2, unsigned int n); + #endif #ifndef STRING_USER #include - char* mystrnstr(const char* s1, const char* s2, unsigned int n); - #define XMEMCPY(d,s,l) memcpy((d),(s),(l)) #define XMEMSET(b,c,l) memset((b),(c),(l)) #define XMEMCMP(s1,s2,n) memcmp((s1),(s2),(n))