aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2020-02-19 08:03:40 -0600
committerCorinna Vinschen <corinna@vinschen.de>2020-02-20 09:45:39 +0100
commit7dac41db189986bea31e07f5593c4d9b186050b1 (patch)
treedfc2245bbafe4ba8553eb53bcf3964cdbd9c9994 /newlib
parentac36c2ec90f7c6d9d7f1c07005f97abd887cc8b0 (diff)
downloadnewlib-7dac41db189986bea31e07f5593c4d9b186050b1.zip
newlib-7dac41db189986bea31e07f5593c4d9b186050b1.tar.gz
newlib-7dac41db189986bea31e07f5593c4d9b186050b1.tar.bz2
newlib/libc/include/devctl.h: Add extern "C" wrapper
Adding this was necessary to allow posix_devctl() from C++.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/devctl.h8
1 files changed, 8 insertions, 0 deletions
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