tridge at tridge at
Mon Jul 25 23:36:36 GMT 2005


 > Using the %PRIu64 stuff, ugly though it is, is the right way to squash
 > these warnings on all platforms.

Except that it doesn't work at all on lots of platforms. That is a
fairly fatal flaw :-)

It coould be used with a configure test. For example:

 1) you could conditionally define PRI_FORMAT_U64 as "%llu" or
    "%PRIu64" depending on configure test results

 2) or you could extend lib/replace/snprintf.c to handle %PRIu64 and
    replace snprintf with our own code on any platform that doesn't
    have that extension.

Cheers, Tridge

More information about the samba-technical mailing list