From: Liubov Dmitrieva Date: Mon, 27 May 2013 14:54:53 +0000 (+0400) Subject: Inappropriate code style for Intel MPX at wcsmbs/wcpcpy.c. Use other implementation... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c9cc287b7b0c55e2dcf17919d733c9db9aa8d64;p=thirdparty%2Fglibc.git Inappropriate code style for Intel MPX at wcsmbs/wcpcpy.c. Use other implementation if MPX is enabled. --- diff --git a/wcsmbs/wcpcpy.c b/wcsmbs/wcpcpy.c index 6f952b45d7a..4c541b14dc4 100644 --- a/wcsmbs/wcpcpy.c +++ b/wcsmbs/wcpcpy.c @@ -18,8 +18,9 @@ #include -#define __need_ptrdiff_t -#include +#ifndef __CHKP__ +# define __need_ptrdiff_t +# include /* Copy SRC to DEST, returning the address of the terminating L'\0' in @@ -42,5 +43,14 @@ __wcpcpy (dest, src) return wcp; } +#else +wchar_t * +__wcpcpy (wchar_t *dst, const wchar_t *src) +{ + while ((*dst++ = *src++) != L'\0'); + return dst - 1; +} + +#endif weak_alias (__wcpcpy, wcpcpy)