Jason Morgan added the comment:
OK, I've understood this a bit more.
The compiler does not cause pyconfig.h to define SIZEOF_SIZE_T and SIZEOF_INT,
rather it is the definition of MS_WIN64 at compile time (which was not being
defined)
Defining MS_WIN64 fixes the problem, and causes an
Jason Morgan added the comment:
Ok, I know there is a typo, (mings64 should read mingw64) I realised after
posting but can't edit it. I don't need any more emails telling me I can't
spell (or type) - I knew that already!
--
___
New submission from Jason Morgan :
Python2.7 has no proper support for mings64. You can use environment path to
trick compiler into using mings64, but this will cause conflict with other
builds.
Adding a mings64 compiler options is much more sensible as both mingw32 and
mings64 can co-exist
New submission from Jason Morgan :
Bulding a simple extension (the spam example) fails with mingw64.
in modsupport.h, the following is used to detect 64bit, it does not work with
mingw64.
#if SIZEOF_SIZE_T != SIZEOF_INT
/* On a 64-bit system, rename the Py_InitModule4 so that 2.4
modules