* lib/readutmp.h: Add extern "C" block.
+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.
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* Type of entries returned by read_utmp on all platforms. */
struct gl_utmp
{
int read_utmp (char const *file, idx_t *n_entries, STRUCT_UTMP **utmp_buf,
int options);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __READUTMP_H__ */