[3/5] string: stpcpy.c: Only alias __stpcpy to stpcpy if STPCPY undefined
Checks
Context |
Check |
Description |
dj/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
Commit Message
If STPCPY is defined, it's likely __stpcpy is not provided by this file
anyway. So it does not make too much sense to make the alias.
---
string/stpcpy.c | 3 +++
1 file changed, 3 insertions(+)
@@ -116,6 +116,9 @@ STPCPY (char *dest, const char *src)
: stpcpy_unaligned_loop ((op_t*) dest,
(const op_t *) (src - ofs) , ofs);
}
+
+#ifndef STPCPY
weak_alias (__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)
libc_hidden_builtin_def (stpcpy)
+#endif