wctype: allow C++ use
authorJohn W. Eaton <jwe@octave.org>
Thu, 7 Jan 2010 13:16:09 +0000 (06:16 -0700)
committerIan Beckwith <ianb@erislabs.net>
Sun, 10 Jan 2010 00:28:08 +0000 (00:28 +0000)
* lib/wctype.in.h: Add extern "C" block for C++.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit c1a179cd48726257211e503550e1199da90c8465)

ChangeLog
lib/wctype.in.h

index 92973cb..4b1f6d5 100644 (file)
--- 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
index 01a0779..7e8b090 100644 (file)
 # 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 @@ rpl_towupper (wint_t wc)
 
 # endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _GL_WCTYPE_H */
 #endif /* _GL_WCTYPE_H */