1
1

* regex.c (regerror): Never use the __memcpy function, as it

breaks the build on Cygwin.
Этот коммит содержится в:
Roland Illig 2004-10-22 22:53:37 +00:00
родитель 849d95373b
Коммит fa72520d74
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2004-10-23 Roland Illig <roland.illig@gmx.de>
* regex.c (regerror): Never use the __memcpy function, as it
breaks the build on Cygwin.
2004-10-22 Roland Illig <roland.illig@gmx.de>
* regex.c: Fix the C preprocessor feature tests. They produced

Просмотреть файл

@ -8243,7 +8243,7 @@ regerror (errcode, preg, errbuf, errbuf_size)
{
if (msg_size > errbuf_size)
{
#if defined HAVE_MEMPCPY || defined _LIBC
#if 0 && (defined HAVE_MEMPCPY || defined _LIBC)
*((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
#else
memcpy (errbuf, msg, errbuf_size - 1);