X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fwchar.in.h;h=6ffe2b2c2630b9ec3fe2f37e18934e53893748f6;hb=49549725af344962f45720d4d332d9cf0699ebcd;hp=11bcbf8ba07374df35d300d2128dc33edd5915d5;hpb=cde82ba3a73b7482132a950ac0d7cb0da67a2e1c;p=pspp diff --git a/lib/wchar.in.h b/lib/wchar.in.h index 11bcbf8ba0..6ffe2b2c26 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -599,6 +599,25 @@ _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " #endif +/* Copy no more than N characters of SRC to DEST, returning the address of + the last character written into DEST. */ +#if @GNULIB_WCPNCPY@ +# if !@HAVE_WCPNCPY@ +_GL_FUNCDECL_SYS (wcpncpy, wchar_t *, + (wchar_t *dest, const wchar_t *src, size_t n)); +# endif +_GL_CXXALIAS_SYS (wcpncpy, wchar_t *, + (wchar_t *dest, const wchar_t *src, size_t n)); +_GL_CXXALIASWARN (wcpncpy); +#elif defined GNULIB_POSIXCHECK +# undef wcpncpy +# if HAVE_RAW_DECL_WCPNCPY +_GL_WARN_ON_USE (wcpncpy, "wcpncpy is unportable - " + "use gnulib module wcpncpy for portability"); +# endif +#endif + + #endif /* _GL_WCHAR_H */ #endif /* _GL_WCHAR_H */ #endif