Andres Freund <andres@2ndquadrant.com> writes:
> So, here's a patch adding %z support to port/snprintf.c including a
> configure check to test whether we need to fall back.
OK, I'll take a look.
> I am not too
> happy about the runtime check as the test isn't all that meaningful, but
> I couldn't think of anything better.
Yeah, it's problematic for cross-compiles, but no more so than configure's
existing test for "%n$" support. In practice, since both these features
are required by C99, I think it wouldn't be such an issue for most people.
regards, tom lane