[RFA] Protect dirent.h against multiple inclusion.
J. Johnston
jjohnstn@cygnus.com
Wed Jan 24 05:55:00 GMT 2001
Christopher Faylor wrote:
>
> Someone on the gcc mailing list stumbled over this recently.
>
> Ok to check in?
>
Yes, please do.
-- Jeff J.
>
> 2001-11-29 Christopher Faylor <cgf@redhat.com>
>
> * libc/include/dirent.h: Protect against multiple inclusion.
> * libc/include/sys/dirent.h: Ditto.
>
> Index: libc/include/dirent.h
> ===================================================================
> RCS file: /cvs/uberbaum/newlib/libc/include/dirent.h,v
> retrieving revision 1.2
> diff -u -p -r1.2 dirent.h
> --- dirent.h 2000/11/21 23:57:24 1.2
> +++ dirent.h 2001/11/30 02:42:39
> @@ -1,3 +1,5 @@
> +#ifndef _DIRENT_H_
> +#define _DIRENT_H_
> #ifdef __cplusplus
> extern "C" {
> #endif
> @@ -10,3 +12,4 @@ extern "C" {
> #ifdef __cplusplus
> }
> #endif
> +#endif /*_DIRENT_H_/
More information about the Newlib
mailing list