diff --git a/MdePkg/Library/CompilerIntrinsicsLib/ArmCompilerIntrinsicsLib.inf b/MdePkg/Library/CompilerIntrinsicsLib/ArmCompilerIntrinsicsLib.inf index def65a31f5..fb941274d6 100644 --- a/MdePkg/Library/CompilerIntrinsicsLib/ArmCompilerIntrinsicsLib.inf +++ b/MdePkg/Library/CompilerIntrinsicsLib/ArmCompilerIntrinsicsLib.inf @@ -16,11 +16,9 @@ MODULE_TYPE = BASE VERSION_STRING = 1.0 LIBRARY_CLASS = CompilerIntrinsicsLib - LIBRARY_CLASS = IntrinsicLib # MU_CHANGE: Support IntrinsicLib linking [Sources] - strcmp.c # MU_CHANGE: Add strcmp implementation memcpy.c | GCC memset.c | GCC diff --git a/MdePkg/Library/CompilerIntrinsicsLib/strcmp.c b/MdePkg/Library/CompilerIntrinsicsLib/strcmp.c deleted file mode 100644 index d005d1f301..0000000000 --- a/MdePkg/Library/CompilerIntrinsicsLib/strcmp.c +++ /dev/null @@ -1,34 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// SPDX-License-Identifier: BSD-2-Clause-Patent -// -// MU_CHANGE: WHOLE FILE - Add strcmp -// -// ------------------------------------------------------------------------------ - -int -strcmp ( - const char *, - const char * - ); - -#if defined (_MSC_VER) - #pragma intrinsic(strcmp) - #pragma function(strcmp) -#endif - -int -strcmp ( - const char *s1, - const char *s2 - ) -{ - while ((*s1 != '\0') && (*s1 == *s2)) { - s1++; - s2++; - } - - return *s1 - *s2; -}