changeset 12594:99db2fb17cae

wctype: allow C++ use * lib/wctype.in.h: Add extern "C" block for C++. Signed-off-by: Eric Blake <ebb9@byu.net>
author John W. Eaton <jwe@octave.org>
date Thu, 07 Jan 2010 06:16:09 -0700
parents e8847ec6bc92
children afe2843b1037
files ChangeLog lib/wctype.in.h
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-07  John W. Eaton  <jwe@octave.org>
+
+	wctype: allow C++ use
+	* lib/wctype.in.h: Add extern "C" block for C++.
+
 2010-01-06  Eric Blake  <ebb9@byu.net>
 
 	maint.mk: detect incorrect GFDL usage
--- a/lib/wctype.in.h
+++ b/lib/wctype.in.h
@@ -62,6 +62,10 @@
 # endif
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* FreeBSD 4.4 to 4.11 has <wctype.h> but lacks the functions.
    Linux libc5 has <wctype.h> and the functions but they are broken.
    Assume all 12 functions are implemented the same way, or not at all.  */
@@ -227,5 +231,9 @@
 
 # endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _GL_WCTYPE_H */
 #endif /* _GL_WCTYPE_H */