Re: cdb++ on a 64-bit machine?

Matthias Andree <[email protected]> Thu, 10 Apr 2003 22:43:38 +0200
Newsgroups gmane.comp.djb.cdb
Message-ID <[email protected]>
Jeff King <[email protected]> writes:

> I haven't looked through the code extensively, but after about 10
> seconds of examining it, I noticed this in cdb++.h:
>
> typedef unsigned long uint32;
>
> Changing that line appropriately (find out which type is 32-bit for your
> compiler) may clear up your problems. I don't have a 64-bit machine to
> test.

Why do people always invent their own constant types when most systems
already provide for uint32_t in <inttypes.h>?

#include <inttypes.h>
typedef uint32_t uint32;

will likely get this solved for good.

If not so, there's still #if and sizeof to figure if it's unsigned long
or unsigned int...

-- 
Matthias Andree