I believe these only get defined if you first define some macro.

On 12 October 2012 21:13, leif <not.rea...@online.de> wrote:
> Bill Hart wrote:
>>
>> Another problem is in the test functions for the ux/sx functions, we
>> use %lld in the format specifier for an intmax_t. This is only valid
>> if intmax_t is actually a long long int, which it is not on some *nix
>> platforms (ia64 for example).
>>
>> C99 introduced a new format specifier (which I forgot already) for
>> intmax_t. Of course this is only supported by C99 compilers. I hope
>> MSVC is C99 compliant enough to have gotten this right, otherwise we
>> have a lot of fiddling around to do.
>
>
> It doesn't really specify new format letters AFAIK, but inttypes.h, which
> defines macros for (portably) printing and scanning the types defined in
> stdint.h, e.g. PRIu64 and SCNu64, regardless of whether uint64_t expands to
> 'unsigned long' ("%lu") or 'unsigned long long' ("%llu"); one can for
> example use
>
>   printf("%20"PRIu64"\n", (uint64_t)foo); // mind the % and quoting
>
>
> For printing [u]intmax_t, the macros are PRIdMAX, PRIiMAX, PRIoMAX (octal),
> PRIuMAX, PRIxMAX and PRIXMAX (hexadecimal, lower and upper case,
> respectively).
>
>
> -leif
>
>
>
>> On 12 October 2012 20:34, Bill Hart <goodwillh...@googlemail.com> wrote:
>>>
>>> That actually won't work. For C++ we must include stdint.h and not
>>> limits.h.
>>>
>>> Bill.
>>>
>>> On 12 October 2012 20:32, Brian Gladman <b...@gladman.plus.com> wrote:
>>>>
>>>> -----Original Message----- From: Bill Hart Sent: Friday, October 12,
>>>> 2012
>>>> 8:30 PM To: mpir-devel@googlegroups.com Subject: Re: [mpir-devel] MPIR
>>>> 2.6.0
>>>> alpha1 released
>>>> Oh no it doesn't, I made a mistake. It has #if defined( _STDINT_H ) ||
>>>> defined ( _STDINT_H_ ) || defined ( _STDINT )
>>>>
>>>> ========================
>>>> I was about to query this :-)
>>>>
>>>> We will need to include limits.h to pick up LLONG_MAX
>>>>
>>>>
>>>>    Brian
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups
>>>> "mpir-devel" group.
>>>> To post to this group, send email to mpir-devel@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> mpir-devel+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/mpir-devel?hl=en.
>>>>
>>
>
>
> --
> () The ASCII Ribbon Campaign
> /\   Help Cure HTML E-Mail
>
> --
> You received this message because you are subscribed to the Google Groups
> "mpir-devel" group.
> To post to this group, send email to mpir-devel@googlegroups.com.
> To unsubscribe from this group, send email to
> mpir-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mpir-devel?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to