[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fri, 05 Oct 2012 10:54:42 -0600
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1
On 10/05/2012 10:50 AM, Eric Blake wrote:
>> <stdint.h> and <limits.h> are the two main headers that are this
>> explicit about various macros being suitable for use in preprocessor
>> arithmetic, and preprocessor arithmetic cannot use casts or sizeof.
> And I think this is a bug in POSIX
Never mind. I wasn't looking hard enough.
> But nowhere in <limits.h>
> does it state that these macros inherited from C99 have the requirement
> of also being usable in #if preprocessing.
It doesn't state it in that area of the header, but rather at the top:
The <limits.h> header shall define macros and symbolic constants for
various limits. Different categories of limits are described below,
representing various limits on resources that the implementation imposes
on applications. All macros and symbolic constants defined in this
header shall be suitable for use in #if preprocessing directives.
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Description: OpenPGP digital signature