public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] newlib/libc/include/devctl.h: Add extern "C" wrapper
@ 2020-02-20 8:49 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-02-20 8:49 UTC (permalink / raw)
To: newlib-cvs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-20 8:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-20 8:49 [newlib-cygwin] newlib/libc/include/devctl.h: Add extern "C" wrapper Corinna Vinschen
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).