MdePkg/BaseFdtLib: Rename standard functions

Rename the standard functions in the LibFdtSupport to remove conflicts
with other libraries that define them.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Jeff Brasen
2024-01-23 15:15:46 -08:00
committed by mergify[bot]
parent 1063665fa5
commit d24187a81f
2 changed files with 7 additions and 25 deletions

View File

@@ -18,28 +18,7 @@
// so the code gets a bit clunky to handle that case specifically.
char *
strchr (
const char *Str,
int Char
)
{
char *S;
S = (char *)Str;
for ( ; ; S++) {
if (*S == Char) {
return S;
}
if (*S == '\0') {
return NULL;
}
}
}
char *
strrchr (
fdt_strrchr (
const char *Str,
int Char
)
@@ -71,7 +50,7 @@ __isspace (
}
unsigned long
strtoul (
fdt_strtoul (
const char *Nptr,
char **EndPtr,
int Base