mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-22 13:14:26 +02:00
CryptoPkg: remove strcmp to syscall
In rare cases the platform may not provide the full IntrinsicLib. But openssl30 build always require strcmp, provide this function by moving it into CrtWrapper.c. Signed-off-by: Yi Li <yi1.li@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Ard Biesheuvel <ardb@kernel.org> Tested-by: Brian J. Johnson <brian.johnson@hpe.com> Tested-by: Kenneth Lautner <klautner@microsoft.com>
This commit is contained in:
parent
c0aeb92663
commit
46226fb5d3
@ -275,6 +275,15 @@ strcpy (
|
|||||||
return strDest;
|
return strDest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
strcmp (
|
||||||
|
const char *s1,
|
||||||
|
const char *s2
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return (int)AsciiStrCmp (s1, s2);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// -- Character Classification Routines --
|
// -- Character Classification Routines --
|
||||||
//
|
//
|
||||||
|
@ -63,12 +63,3 @@ memcmp (
|
|||||||
{
|
{
|
||||||
return (int)CompareMem (buf1, buf2, count);
|
return (int)CompareMem (buf1, buf2, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
strcmp (
|
|
||||||
const char *s1,
|
|
||||||
const char *s2
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return (int)AsciiStrCmp (s1, s2);
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user