summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 fd3409f89..889693e1d 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