bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] full-read: Add extern "C" for C++.


From: Miro Palmu
Subject: [PATCH] full-read: Add extern "C" for C++.
Date: Wed, 17 Apr 2024 17:58:46 +0300
User-agent: Mozilla Thunderbird

Same what commit a0b977a430af88ff58d9596a60670936eb7f1d31
does for module full-write, but for full-read.

* lib/full-read.h: Add extern "C" for C++.

Copyright-paperwork-exempt: Yes
---
 ChangeLog       |  4 ++++
 lib/full-read.h | 11 +++++++++++
 2 files changed, 15 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index e6b4eff89b..fd1963d3e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-04-17  Miro Palmu  <email@miropalmu.cc>
+
+       lib/full-read.h: Add extern "C" for C++.
+
 2024-04-17  Bruno Haible  <bruno@clisp.org>
 
        getpayloadl: Add tests.
diff --git a/lib/full-read.h b/lib/full-read.h
index 5f73a19ae9..3ba96a88f8 100644
--- a/lib/full-read.h
+++ b/lib/full-read.h
@@ -17,7 +17,18 @@
 
 #include <stddef.h>
 
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 /* Read COUNT bytes at BUF to descriptor FD, retrying if interrupted
    or if partial reads occur.  Return the number of bytes successfully
    read, setting errno if that is less than COUNT.  errno = 0 means EOF.  */
 extern size_t full_read (int fd, void *buf, size_t count);
+
+
+#ifdef __cplusplus
+}
+#endif
-- 
2.44.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]