diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-04-11 19:24:51 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-04-12 14:39:01 +0000 |
commit | 3b4b49cf003c17f1964b258706bddd0a8921b5cf (patch) | |
tree | 0001a2e71e26d049e4190af7a45089816e511f6c /CryptoPkg/Library | |
parent | 4352d115c4bd1dda7806aa5aa27a9a6f84404974 (diff) | |
download | edk2-3b4b49cf003c17f1964b258706bddd0a8921b5cf.tar.gz edk2-3b4b49cf003c17f1964b258706bddd0a8921b5cf.tar.bz2 edk2-3b4b49cf003c17f1964b258706bddd0a8921b5cf.zip |
CryptoPkg/CrtLibSupport: add strstr()
Add #define for strstr().
Will be needed by openssl 3.0.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Diffstat (limited to 'CryptoPkg/Library')
-rw-r--r-- | CryptoPkg/Library/Include/CrtLibSupport.h | 1 |
1 files changed, 1 insertions, 0 deletions
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)
|