egcs-1.0.3a on DEC Alpha / DU4.0b: typedef of ulong in types.h

Jeffrey A Law law@cygnus.com
Thu Jul 16 00:32:00 GMT 1998


  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



More information about the Gcc mailing list