What GCC version had <stdint.h> defined?

"Martin v. Löwis" martin at v.loewis.de
Fri Aug 27 07:43:33 CEST 2004


Scott David Daniels wrote:
> I'd like to change it to something like:
>     ...
>     #if _MSC_VER > 1200
>     #define HAVE_UINTPTR_T 1
>     #define HAVE_INTPTR_T 1
>     #endif
>     ...
>     #if GCC_VERSION >= 30100
>     #define HAVE_UINTPTR_T 1
>     #define HAVE_INTPTR_T 1
>     #endif
>     ...
> 
> which is arguably better even if not good enough.

That won't help at all. PC/pyconfig.h is used only
on Windows, not on Linux. On Linux, configure is run
to detect presence of things.

> Is there a better test I can do at compile time?

Depends on what you want to test for. If it is
presence of stdint.h, you should test for
HAVE_STDINT_H.

Regards,
Martin



More information about the Python-list mailing list