public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] newlib/libc/include/devctl.h: Add extern C
@ 2020-02-13 14:01 Joel Sherrill
  2020-02-13 14:01 ` [PATCH v2 2/2] x86_64/i386 fenv: Replace symlink with include fenv_stub.c Joel Sherrill
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Sherrill @ 2020-02-13 14:01 UTC (permalink / raw)
  To: newlib; +Cc: Joel Sherrill

---
 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-13 16:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13 14:01 [PATCH v2 1/2] newlib/libc/include/devctl.h: Add extern C Joel Sherrill
2020-02-13 14:01 ` [PATCH v2 2/2] x86_64/i386 fenv: Replace symlink with include fenv_stub.c Joel Sherrill
2020-02-13 16:12   ` 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).