]> Savannah Git Hosting - gnulib.git/commitdiff
readutmp: Make the header file includable from C++.
authorBruno Haible <bruno@clisp.org>
Fri, 11 Aug 2023 00:39:56 +0000 (02:39 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 11 Aug 2023 00:39:56 +0000 (02:39 +0200)
* lib/readutmp.h: Add extern "C" block.

ChangeLog
lib/readutmp.h

index 979761ad16fbd39c99bc23aac2719950e99127a7..0a35614fd44c847469dd358287e9ac72fd96dc18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-10  Bruno Haible  <bruno@clisp.org>
+
+       readutmp: Make the header file includable from C++.
+       * lib/readutmp.h: Add extern "C" block.
+
 2023-08-10  Bruno Haible  <bruno@clisp.org>
 
        readutmp: Tweak the Android specific addition.
index b74d37cde391bcf60d002d053d689bd15eb722ca..8db549a39378df28098ca5f65ca0e9c9aa567d8d 100644 (file)
 #endif
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Type of entries returned by read_utmp on all platforms.  */
 struct gl_utmp
 {
@@ -279,4 +284,9 @@ char *extract_trimmed_name (const STRUCT_UTMP *ut)
 int read_utmp (char const *file, idx_t *n_entries, STRUCT_UTMP **utmp_buf,
                int options);
 
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __READUTMP_H__ */