From 9c9cc287b7b0c55e2dcf17919d733c9db9aa8d64 Mon Sep 17 00:00:00 2001 From: Liubov Dmitrieva Date: Mon, 27 May 2013 18:54:53 +0400 Subject: [PATCH] Inappropriate code style for Intel MPX at wcsmbs/wcpcpy.c. Use other implementation if MPX is enabled. --- wcsmbs/wcpcpy.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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) -- 2.47.2