[Python-Dev] PY_FORMAT_SIZE_T warnings on OS X
"Martin v. Löwis"
martin at v.loewis.de
Sun Apr 2 08:29:36 CEST 2006
Tim Peters wrote:
> For gcc we _could_ solve it in the obvious way, which I guess Martin
> was hoping to avoid: change Unixish config to detect whether the
> platform C supports the "z" format modifier (I believe gcc does), and
> if so arrange to stick
>
> #define PY_FORMAT_SIZE_T "z"
It's not gcc to support "z" (except for the compile-time check); it's
the C library (on Unix, the C library is part of the system, not part
of the compiler).
But yes: if we could detect in configure that the C library supports
%zd, then we should use that.
Regards,
Martin
More information about the Python-Dev
mailing list