Skip to contentSkip to conversation

Comment for Solaris fix for the HPTC

Qemu-devel Juergen Keil 1 participant 1 message Sep 17, 2007

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Andreas Schwab

Your reference to ULONG_MAX is a red herring. ULONG_MAX is the limit for unsigned long, and ULONG_LONG_MAX is the limit for unsigned long long. If your compiler does not support the long long type then ULONG_LONG_MAX should not be defined either. Instead, vl.c should use UINT64_MAX.

Looking at a (draft) c99 standard document, I don't find any references for an ULONG_LONG_MAX macro, anyway. The c99 <limits.h> header is supposed to define LLONG_MIN, LLONG_MAX and ULLONG_MAX for the "long long" and "unsigned long long" type limits...