Date: Sun, 13 Feb 2005 04:50:46 +0000 From: Joseph Koshy <joseph.koshy@gmail.com> To: Mathew Kanner <mat@cnd.mcgill.ca> Cc: freebsd-current@freebsd.org Subject: Re: cross platform Message-ID: <84dead720502122050492cde82@mail.gmail.com> In-Reply-To: <20050212145501.GG5488@cnd.mcgill.ca> References: <20050212145501.GG5488@cnd.mcgill.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
> - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84dead720502122050492cde82>