* progname.h: Don't include stdbool.h.
+2004-07-16 Bruno Haible <bruno@clisp.org>
+
+ * mbswidth.h: Add extern "C" for C++.
+ Reported by Albert Chin-A-Young <china@thewrittenword.com>.
+
2003-09-08 Paul Eggert <eggert@twinsun.com>
* atexit.c (atexit): Define using a prototype.
character string pointed to by STRING. If a non-printable character
occurs, and MBSW_REJECT_UNPRINTABLE is specified, -1 is returned.
With flags = MBSW_REJECT_INVALID | MBSW_REJECT_UNPRINTABLE, this is
- the multibyte analogon of the wcswidth function. */
+ the multibyte analogue of the wcswidth function. */
int
mbswidth (const char *string, int flags)
{
#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
/* 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