Re: [PATCH] libc/include/newlib.h: Fix C++ compilation issue

Corinna Vinschen via Newlib <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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
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.