Guido van Rossum schrieb: > Never mind. Amaury pointed out that the code already includes > PY_FORMAT_SIZE_T, but that particular platform doesn't support %zd. > Maybe PY_FORMAT_SIZE_T should be "l" instead on that platform? (As > it's not Windows I'm pretty sure sizeof(long) == sizeof(void*)...)
Are you still talking about S/390? I see this from configure: checking size of int... 4 checking size of long... 4 checking size of void *... 4 checking size of size_t... 4 So: a) it's not a 64-bit system (it should then be an 31-bit system), b) Python already would use %ld if sizeof(ssize_t)!=sizeof(int), but sizeof(ssize_t)==sizeof(long) Not sure why gcc is complaining; according to this change to APR http://www.mail-archive.com/[EMAIL PROTECTED]/msg18533.html it might still be that the warning goes away if %ld is used on S390 (similar to what is done for __APPLE__). Interestingly enough, they use this code for OSX :-) + *apple-darwin*) + osver=`uname -r` + case $osver in + [[0-7]].*) + ssize_t_fmt="d" + ;; + *) + ssize_t_fmt="ld" + ;; + esac Regards, Martin _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com