From: Joel Sherrill <joel@rtems.org>
To: newlib@sourceware.org
Cc: Joel Sherrill <joel@rtems.org>
Subject: [PATCH v3 1/2] newlib/libc/include/devctl.h: Add extern "C" wrapper
Date: Wed, 19 Feb 2020 14:04:00 -0000 [thread overview]
Message-ID: <1582121021-30727-2-git-send-email-joel@rtems.org> (raw)
In-Reply-To: <1582121021-30727-1-git-send-email-joel@rtems.org>
Adding this was necessary to allow posix_devctl() from C++.
---
newlib/libc/include/devctl.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/newlib/libc/include/devctl.h b/newlib/libc/include/devctl.h
index fd3409f..889693e 100644
--- a/newlib/libc/include/devctl.h
+++ b/newlib/libc/include/devctl.h
@@ -35,6 +35,10 @@
#include <sys/cdefs.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if defined(__rtems__)
/*
* The FACE Technical Standard, Edition 3.0 and later require the
@@ -67,4 +71,8 @@ int posix_devctl(
);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif
--
1.8.3.1
next prev parent reply other threads:[~2020-02-19 14:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-19 14:03 [PATCH v3 0/2] Misc Patches Joel Sherrill
2020-02-19 14:04 ` Joel Sherrill [this message]
2020-02-20 8:49 ` [PATCH v3 1/2] newlib/libc/include/devctl.h: Add extern "C" wrapper Corinna Vinschen
2020-02-19 14:04 ` [PATCH v3 2/2] x86_64/i386 fenv: Replace symlink with include fenv_stub.c Joel Sherrill
2020-02-20 9:01 ` Corinna Vinschen
2020-02-20 13:54 ` Joel Sherrill
2020-02-20 14:10 ` Corinna Vinschen
2020-02-25 13:38 ` Joel Sherrill
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1582121021-30727-2-git-send-email-joel@rtems.org \
--to=joel@rtems.org \
--cc=newlib@sourceware.org \
/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).