From: Bruno Haible Date: Fri, 28 Jan 2005 12:58:01 +0000 (+0000) Subject: Define the alias differently. X-Git-Tag: v0.14.2~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d242c674e7508438be32f2f0bcdaf108b02aef1e;p=thirdparty%2Fgettext.git Define the alias differently. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 2534dfc1c..3749a8d46 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-01-28 Bruno Haible + + * stpncpy.h (stpncpy): Define as a macro without arguments, so that + stpncpy.c uses it. + 2005-01-09 Bruno Haible * csharpcomp.sh.in (func_tmpdir): New function. diff --git a/gettext-tools/lib/stpncpy.h b/gettext-tools/lib/stpncpy.h index 6dc92a813..6bcdbdd61 100644 --- a/gettext-tools/lib/stpncpy.h +++ b/gettext-tools/lib/stpncpy.h @@ -1,5 +1,5 @@ /* String copying. - Copyright (C) 1995, 2001-2004 Free Software Foundation, Inc. + Copyright (C) 1995, 2001-2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,12 +28,13 @@ extern "C" { #if !HAVE_STPNCPY -/* Copy no more than N bytes of SRC to DST, returning a pointer past the - last non-NUL byte written into DST. */ /* When not using the GNU libc we use the stpncpy implementation we provide here. */ -extern char *gnu_stpncpy (char *dst, const char *src, size_t n); -#define stpncpy(Dst, Src, N) gnu_stpncpy (Dst, Src, N) +#define stpncpy gnu_stpncpy + +/* Copy no more than N bytes of SRC to DST, returning a pointer past the + last non-NUL byte written into DST. */ +extern char *stpncpy (char *dst, const char *src, size_t n); #endif