From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44326 invoked by alias); 20 Feb 2020 08:49:19 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 44202 invoked by uid 9078); 20 Feb 2020 08:49:18 -0000 Date: Thu, 20 Feb 2020 08:49:00 -0000 Message-ID: <20200220084918.44200.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib/libc/include/devctl.h: Add extern "C" wrapper X-Act-Checkin: newlib-cygwin X-Git-Author: Joel Sherrill X-Git-Refname: refs/heads/master X-Git-Oldrev: ac36c2ec90f7c6d9d7f1c07005f97abd887cc8b0 X-Git-Newrev: 7dac41db189986bea31e07f5593c4d9b186050b1 X-SW-Source: 2020-q1/txt/msg00022.txt https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7dac41db189986bea31e07f5593c4d9b186050b1 commit 7dac41db189986bea31e07f5593c4d9b186050b1 Author: Joel Sherrill 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 +#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