Allow use in C++ environment.
authorBruno Haible <bruno@clisp.org>
Fri, 16 Jul 2004 16:09:12 +0000 (16:09 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 16 Jul 2004 16:09:12 +0000 (16:09 +0000)
lib/ChangeLog
lib/mbswidth.h

index 2c28e44..a77eb81 100644 (file)
@@ -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
index 6fec3f4..4fcdb20 100644 (file)
 #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 @@ extern int mbswidth (const char *string, int flags);
 /* 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