Mercurial > hg > octave-nkf > gnulib-hg
changeset 5104:73f9a98a273f
Allow use in C++ environment.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 16 Jul 2004 16:09:12 +0000 |
parents | ec9fb052682f |
children | d088e155d8f6 |
files | lib/ChangeLog lib/mbswidth.h |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-07-16 Bruno Haible <bruno@clisp.org> + + * mbswidth.h: Add extern "C" for C++. + Reported by Albert Chin-A-Young <china@thewrittenword.com>. + 2004-07-09 Simon Josefsson <jas@extundo.com> * getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
--- a/lib/mbswidth.h +++ b/lib/mbswidth.h @@ -30,6 +30,11 @@ #endif +#ifdef __cplusplus +extern "C" { +#endif + + /* Optional flags to influence mbswidth/mbsnwidth behavior. */ /* If this bit is set, return -1 upon finding an invalid or incomplete @@ -49,3 +54,8 @@ /* Returns the number of screen columns needed for the NBYTES bytes starting at BUF. */ extern int mbsnwidth (const char *buf, size_t nbytes, int flags); + + +#ifdef __cplusplus +} +#endif