Mercurial > hg > octave-lojdl > gnulib-hg
changeset 8426:afb03bff7144
Require 'restrict'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 11 Mar 2007 23:09:09 +0000 |
parents | 280b8a0ee061 |
children | 8bd2ba354a25 |
files | ChangeLog m4/mempcpy.m4 |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-11 Bruno Haible <bruno@clisp.org> + + * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT. + 2007-03-11 Bruno Haible <bruno@clisp.org> * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
--- a/m4/mempcpy.m4 +++ b/m4/mempcpy.m4 @@ -1,4 +1,4 @@ -# mempcpy.m4 serial 6 +# mempcpy.m4 serial 7 dnl Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ dnl Persuade glibc <string.h> to declare mempcpy(). AC_REQUIRE([AC_GNU_SOURCE]) + dnl The mempcpy() declaration in lib/string_.h uses 'restrict'. + AC_REQUIRE([AC_C_RESTRICT]) + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) AC_REPLACE_FUNCS(mempcpy) if test $ac_cv_func_mempcpy = no; then