Re: [PATCH v3 1/2] newlib/libc/include/devctl.h: Add extern "C" wrapper

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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(+)
> 
> 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
> -- 
> 1.8.3.1

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.