summaryrefslogtreecommitdiff
path: root/lib/mbswidth.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mbswidth.h')
-rw-r--r--lib/mbswidth.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/mbswidth.h b/lib/mbswidth.h
index 6fec3f490..4fcdb2096 100644
--- 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 @@ 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