Web lists-archives.com

Re: ushort definition




On Jan  9 17:47, Marco Atzeri wrote:
> While building latest gdal
> 
> the following bloc of
> /usr/include/sys/types.h
> 
> -----------------------------------------------------------------------
> #if __MISC_VISIBLE
> typedef unsigned short  ushort;         /* System V compatibility */
> typedef unsigned int    uint;           /* System V compatibility */
> typedef unsigned long   ulong;          /* System V compatibility */
> #endif
> -------------------------------------------------------------------------
> 
> seems to cause a puzzling recursive definition
> (as reported by g++ -C -E)
> 
> $ grep "System V" ../o/.libs/jpeg2000_vsil_io.E
> typedef unsigned short unsigned short; /* System V compatibility */
> typedef unsigned int unsigned int; /* System V compatibility */
> typedef unsigned long unsigned long; /* System V compatibility */
>  * from System V, which stupidly took internal interface macros and
> 
> however I don't see how the definition is read two times
> or where ushort was previoulsy defined.
> 
> grep "ushort" ../o/.libs/jpeg2000_vsil_io.E
> <empty>
> 
> What I am missing ?

Some

  #define ushort unsigned short

perhaps?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature