From: Gerd Hoffmann Date: Mon, 11 Apr 2022 11:24:51 +0000 (+0800) Subject: CryptoPkg/CrtLibSupport: add strstr() X-Git-Tag: edk2-stable202205~110 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3b4b49cf003c17f1964b258706bddd0a8921b5cf CryptoPkg/CrtLibSupport: add strstr() Add #define for strstr(). Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann Reviewed-by: Jiewen Yao --- diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h index 75172b920b..a47befbb90 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -405,6 +405,7 @@ inet_pton ( #define strcat(strDest, strSource) AsciiStrCatS(strDest,MAX_STRING_SIZE,strSource) #define strncmp(string1, string2, count) (int)(AsciiStrnCmp(string1,string2,(UINTN)(count))) #define strcasecmp(str1, str2) (int)AsciiStriCmp(str1,str2) +#define strstr(s1, s2) AsciiStrStr(s1,s2) #define sprintf(buf, ...) AsciiSPrint(buf,MAX_STRING_SIZE,__VA_ARGS__) #define localtime(timer) NULL #define assert(expression)