This is the mail archive of the gcc@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: egcs-1.0.3a on DEC Alpha / DU4.0b: typedef of ulong in types.h



  In message <9807151620.AA18101@gatekeeper.vs.dasa.de>you write:
  > Is it intended that the size of ulong in egcs-1.0.3a on a DEC Alpha,
  > /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/egcs-2.90.29/include/sys/types
  > .h
  > line 468, be set to 8 bytes?
  >     `typedef long unsigned int ulong;'
  > This declaration raises conflicts with other software, e.g. mico-2.1.0
  > wants to `typedef unsigned int ulong;'
  > 
  > Who's the culprit, EGCS or MICO? 
  > Is the name `ulong' reserved in some special way so that apps shouldn't 
  > attempt to redefine it in the first place?
The problem is either DEC or MICO, not egcs.

I don't have an ANSI reference handy, but I do not believe "ulong" is
a reserved type, and the definition in sys/types.h is thus polluting
the ANSI namespace.

jeff


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