[PATCH] libc/include/newlib.h: Fix C++ compilation issue
Corinna Vinschen
vinschen@redhat.com
Tue Nov 10 08:45:45 GMT 2020
On Nov 9 15:33, Joel Sherrill wrote:
> ---
> newlib/libc/include/devctl.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/newlib/libc/include/devctl.h b/newlib/libc/include/devctl.h
> index 889693e..46305cf 100644
> --- a/newlib/libc/include/devctl.h
> +++ b/newlib/libc/include/devctl.h
> @@ -69,10 +69,10 @@ int posix_devctl(
> size_t nbyte,
> int *__restrict dev_info_ptr
> );
> -#endif
>
> #ifdef __cplusplus
> }
> #endif
>
> -#endif
> +#endif /* _POSIX_26_C_SOURCE */
> +#endif /*_POSIX_DEVCTL_h_ */
> --
> 1.8.3.1
LGTM, but maybe you should add a /* __rtems__ */ comment in line 54,
too. Please push.
Thanks,
Corinna
More information about the Newlib
mailing list