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

Jeffrey A Law law@cygnus.com
Mon Nov 23 12:39:00 GMT 1998


  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



More information about the Gcc-patches mailing list