ushort definition

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jan 9 16:59:00 GMT 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170109/c67005e1/attachment.sig>


More information about the Cygwin mailing list