From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46714 invoked by alias); 20 Feb 2020 08:49:54 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 46706 invoked by uid 89); 20 Feb 2020 08:49:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Corinna X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Feb 2020 08:49:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582188591; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=QKh/tNQoLN33UIfLEj60BF4s1LDoxLAQ5H7Aie03Ys0=; b=Fan4GfcPU6ZwSOdLWczs+T2ZGJmb6rlE7fyZ9MI1mk9Tb0pGQW8QEt6DrA/mG7iozp5hFN f75uYPE2T9TUnQZtYLi53uJZ4nGgirt8nDmz5OVs/hGB3d5MLeygZhu96ydEdisF1QxCsK HpFUv36NrYe3THGMzFTyJvpHU/83gn4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-92-NwggY7l7OKOiW8q0-ssCxw-1; Thu, 20 Feb 2020 03:49:49 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C3739800D48 for ; Thu, 20 Feb 2020 08:49:48 +0000 (UTC) Received: from calimero.vinschen.de (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8FDDE1BC6D for ; Thu, 20 Feb 2020 08:49:47 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 96FFDA80773; Thu, 20 Feb 2020 09:49:44 +0100 (CET) Date: Thu, 20 Feb 2020 08:49:00 -0000 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: [PATCH v3 1/2] newlib/libc/include/devctl.h: Add extern "C" wrapper Message-ID: <20200220084944.GO4092@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <1582121021-30727-1-git-send-email-joel@rtems.org> <1582121021-30727-2-git-send-email-joel@rtems.org> MIME-Version: 1.0 In-Reply-To: <1582121021-30727-2-git-send-email-joel@rtems.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HcccYpVZDxQ8hzPO" Content-Disposition: inline X-SW-Source: 2020/txt/msg00097.txt --HcccYpVZDxQ8hzPO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 796 On Feb 19 08:03, Joel Sherrill wrote: > Adding this was necessary to allow posix_devctl() from C++. > --- > newlib/libc/include/devctl.h | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > 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 @@ >=20=20 > #include >=20=20 > +#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 >=20=20 > +#ifdef __cplusplus > +} > +#endif > + > #endif > --=20 > 1.8.3.1 Pushed. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer Red Hat --HcccYpVZDxQ8hzPO Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl5OSCgACgkQ9TYGna5E T6AkThAAmiuH2Qq5hdxdfzsepzQYX5tp8m1GpfFONA6ZDZ7i86OHB/T0s0N3wkJd rDd8UlXrA98X+H2K1D9GCxZbMMTCDoSC6s7dZecf/SVKsWdbO5mfAfUEvW+OZ9VX YK9hizGkqw2pfyNfFE/RpjM1zNFUSB+QfL/Ds3m1CKLy78ogOXw9pdWCjhHNcSyH kjwv9VZmaO8UJFS6OEPV/el5CJNyFgEBSiC4/oYyjO7ZhqPPepu2hJP+tlIeV1wH eC7ZJTQkr7fK7X3LBw6Th6KsPCs14Z7r6u54jDof69SJBf4AcQC0wbvUfBmi/3cx Nc9tRZhDk13rRxSTCuxvSHgBy4ETZO1ypli2+7wWTJnok4phliGUz6rJrL5HqQHb Pmdsq7RbyGrxS2sso6QXxUqzVaNttXHhXnsFCx6hwUXtYgoYleKpHzgRX9bB2Kb6 M2a1Y6QLv0GvPrxqOuwMjJ/AjgXu8Sa2blFBg0DBlAOwIZRKkGGW0ykqJyuoLfk8 KhgpUyFyXrrLUnJlqhOgztcx2srvqHx6z+DPYB7qH4cY4ClGOhUZwfpbAm+eKNVI YvdQT7QLT5Ju+vgtFBjRAkl8f+w4ZwiO/gkj4qIY65Sf2Tv1KosYSYaA2+z7sszD DpXCVYAqf1l8T5G6gsKWvZEQedREUBnBP+oh4JDS43S3LuTm9wU= =Ugh8 -----END PGP SIGNATURE----- --HcccYpVZDxQ8hzPO--