wctype: allow C++ use
[gnulib.git] / lib / wctype.in.h
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 */