public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib/libc/include/devctl.h: Add extern "C" wrapper Date: Thu, 20 Feb 2020 08:49:00 -0000 [thread overview] Message-ID: <20200220084918.44200.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7dac41db189986bea31e07f5593c4d9b186050b1 commit 7dac41db189986bea31e07f5593c4d9b186050b1 Author: Joel Sherrill <joel@rtems.org> Date: Wed Feb 19 08:03:40 2020 -0600 newlib/libc/include/devctl.h: Add extern "C" wrapper Adding this was necessary to allow posix_devctl() from C++. Diff: --- 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
reply other threads:[~2020-02-20 8:49 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20200220084918.44200.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@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: linkBe 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).