Re: cross platform

From: Joseph Koshy <joseph.koshy_at_gmail.com>
Date: Sun, 13 Feb 2005 04:50:46 +0000
>  - How do I know which is the right directive? Is this documented
>    somewhere?

What's the problem exactly?

I had a problem with printing uint64_t values portably between
the AMD 64 and i386.  My debug printfs had to use either
"%lx" or "%llx".  The workaround (hack) was to use CPP
liberally (#define U64FORMAT "%l" or "%ll").

I wonder if there is a better (more portable) way.

-- 
FreeBSD Volunteer, http://people.freebsd.org/~jkoshy
Received on Sun Feb 13 2005 - 03:50:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:28 UTC