PRIu64

Tim Potter tpot at samba.org
Tue Jul 26 03:12:07 GMT 2005


On Tue, 2005-07-26 at 09:36 +1000, tridge at samba.org wrote:
> Tim,
> 
>  > 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 :-)

Which C99 compatible platforms does it not work on?  I was planning to
check out how well this flew on the build farm but you reverted it
before too long.

> 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.

Yes although by this stage it's starting to be a lot of work just to fix
a couple of warnings.  (-:


Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20050726/681e54e0/attachment.bin


More information about the samba-technical mailing list