[EMAIL PROTECTED] wrote on 
31/03/2008 11:49:12:

> 
> Hi all, 
> 
> 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 
> 
> Relevant code in pyport.h: 
> 
> #ifdef HAVE_UINTPTR_T 
> typedef uintptr_t        Py_uintptr_t; 
> typedef intptr_t        Py_intptr_t; 
> 
> And in pyconfig.h: 
> 
> #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 ... 
> 
> Any idea ? 

Just found something: we need to include <stdint.h> for

dbprovider.c
gnubgmodule.c

Guess gnubgmodule.h would be the right place to put the include.
but I'm not sure if it's needed/allowed on other platforms/compiler ...

MaX.
_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Reply via email to