I installed the latest (stable) mingw
gcc (3.4.5) and I can't compile dbprovider.c
Compiling dbprovider.c
In file included from C:/Python25/include/Python.h:57,
from dbprovider.c:28:
C:/Python25/include/pyport.h:73: error:
syntax error before "Py_uintptr_t"
C:/Python25/include/pyport.h:73: warning:
type defaults to `int' in declaration of `Py_uintptr_t'
C:/Python25/include/pyport.h:73: warning:
data definition has no type or storage class
#if (__GNUC__ <= 3) && (__GNUC_MINOR__
<= 2)
/* Define integer types
capable of
* holding object
pointers for GCC [MinGW] 3.2
* Which we know
for sure does not have these.
*/
typedef int intptr_t;
typedef unsigned uintptr_t;
#elif (__GNUC__ >= 3) &&
(__GNUC_MINOR__ > 2)
/*---------------------------------------
* You must define
them if your MinGW does not
* have them. 3.4.1RC
and above have them. And it is
* a strong possibility
that MinGW 3.3.Y has them too.
* So, tell the compiler
we have them:
*---------------------------------------*/
#define HAVE_UINTPTR_T
1
#define HAVE_INTPTR_T
1
#endif /* MinGW/GNUC version checks
*/
Issue is that uintptr_t is not defined
anywhere ...