[Python-Dev] Hundreds of warnings

David Abrahams David Abrahams" <david.abrahams@rcn.com
Wed, 15 May 2002 18:02:42 -0500


----- Original Message -----
From: "Tim Peters" <tim.one@comcast.net>
> Quite a while ago I added this to pyport.h, hoping to do that someday:
>
> #if LONG_BIT != 8 * SIZEOF_LONG
> /* 04-Oct-2000 LONG_BIT is apparently (mis)defined as 64 on some recent
>  * 32-bit platforms using gcc.  We try to catch that here at compile-time
>  * rather than waiting for integer multiplication to trigger bogus
>  * overflows.
>  */
> #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
> config?)."
> #endif

...which explains why I have to
#  define SIZEOF_LONG 4
explicitly to build any Cygwin extension modules.