From 7dac41db189986bea31e07f5593c4d9b186050b1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 19 Feb 2020 08:03:40 -0600 Subject: [PATCH] newlib/libc/include/devctl.h: Add extern "C" wrapper Adding this was necessary to allow posix_devctl() from C++. --- 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 fd3409f89..889693e1d 100644 --- a/newlib/libc/include/devctl.h +++ b/newlib/libc/include/devctl.h @@ -35,6 +35,10 @@ #include +#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