Thanks, Updated for take 7. wt On Tue, Jul 7, 2009 at 04:06, Rolf Eike Beer<eike-kernel@xxxxxxxxx> wrote: > Warren Turkal wrote: > >> diff --git a/lib/types.h b/lib/types.h >> index 3e0e5c3..9bdd82a 100644 >> --- a/lib/types.h >> +++ b/lib/types.h >> @@ -15,39 +15,50 @@ >> typedef BYTE u8; >> typedef WORD u16; >> typedef DWORD u32; >> +typedef I64u u64; >> + >> +#ifdef PCI_HAVE_64BIT_ADDRESS >> +#include <limits.h> >> +#if ULONG_MAX > 0xffffffff >> +#define PRIu64 "l" >> +#else >> +#define PRIu64 "ll" >> +#endif >> +#endif >> + > > Ehm, no, the other way round: > > typedef unsigned __int64 u64; > #define PRIu64 I64u > > Greetings, > > Eike > -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html