Ethereal-dev: Re: [Ethereal-dev] Fun PRI[doxu]64 problem on AIX 4.3.2 for 0.10.5

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Albert Chin <[email protected]>
Date: Tue, 13 Jul 2004 06:28:59 -0500
On Mon, Jul 12, 2004 at 11:15:16PM -0700, Guy Harris wrote:
> On Mon, Jul 12, 2004 at 11:50:23PM -0500, Albert Chin wrote:
> > As the test fails, ethereal defines PRId64. But, because the IBM C
> > compiler does not like re#defining a macro,
> 
> Presumably it doesn't mind #undef-ing the macro and re-#defining it.
> 
> > What is the best way to fix this?
> 
> If it's possible, the best way is probably to convince autoconf to add a
> #undef of PRI[doux]64 before the #defines - the AIX 4.3.2 ones are
> sufficiently bogus that I'd be inclined to classify it as being an OS
> without sensible definitions, even though it happens to define them, so
> we're better off defining them ourselves.

We need to #undef after including <inttypes.h>. Because "config.h" is
always #include'd first, do we include <inttypes.h> in config.h?

-- 
albert chin ([email protected])