This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: S_ISDIR/S_ISREG patches (was: libcpp.a bugs (and fixes))



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]