bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Miro Palmu via Gnulib discussion list <bug-gnulib@gnu.org>
To: bug-gnulib@gnu.org
Subject: [PATCH] full-read: Add extern "C" for C++.
Date: Wed, 17 Apr 2024 17:58:46 +0300	[thread overview]
Message-ID: <9111c303-6282-4a4a-97aa-9948b0143a6d@miropalmu.cc> (raw)
In-Reply-To: <>


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	other threads:[~2024-04-17 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-17 14:58 Miro Palmu via Gnulib discussion list [this message]
2024-04-17 22:36 ` [PATCH] full-read: Add extern "C" for C++ Bruno Haible
2024-04-18  5:51   ` Miro Palmu via Gnulib discussion list
2024-04-18  7:28     ` Bruno Haible

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9111c303-6282-4a4a-97aa-9948b0143a6d@miropalmu.cc \
    --to=bug-gnulib@gnu.org \
    --cc=email@miropalmu.cc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).