This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: S_ISDIR/S_ISREG patches (was: libcpp.a bugs (and fixes))
- To: "Melissa O'Neill" <oneill at cs dot sfu dot ca>
- Subject: Re: S_ISDIR/S_ISREG patches (was: libcpp.a bugs (and fixes))
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 23 Nov 1998 10:19:48 -0700
- cc: EGCS-Patches <egcs-patches at cygnus dot com>
- Reply-To: law at cygnus dot com
In message <199811231026.CAA17883@aldrington.ppp.cs.sfu.ca>you write:
> I wrote:
> >> cppfiles.c relies on the macros S_ISREG and S_ISDIR, which aren't define
> d
> >> on all systems.
>
> ... and Jeff Law replied:
> > Maybe it belongs in system.h. Probably don't need an autoconf test since
> > we can check if S_ISDIR is defined before defining it in system.h
>
> Since no one else seems to have addressed this in the lastest snapshot,
> here's a patch for system.h. I found the code was already duplicated in
> cccp.c, cpplib.c and gcc.c, so I've taken it out of those, and dumped
> it into system.h.
>
> I've enclosed my patch; enjoy...
Thanks! Installed.
jeff