g++ bla.c
prag.c:5:17: warning: expected a string after '#pragma message' [-Wpragmas]
 #pragma message INTMAX_MAX
                 ^
prag.c:6:17: warning: expected a string after '#pragma message' [-Wpragmas]
 #pragma message __STDC_LIMIT_MACROS



On 9 April 2014 16:33, Jean-Pierre Flori <[email protected]> wrote:

> 2014-04-09 16:24 GMT+02:00 Bill Hart <[email protected]>:
> > Yeah, as I said, they get defined only if you first do:
> >
> > #define __STDC_LIMIT_MACROS 1
> It seems I don't need this define on my setup (unless I misunderstood you):
>
> $ cat bla.c
> #include <stdint.h>
> #include <limits.h>
>
> #pragma message LONG_MAX
> #pragma message INTMAX_MAX
> #pragma message __STDC_LIMIT_MACROS
> #if LONG_MAX == INTMAX_MAX
> #pragma message eq
> #endif
>
> $cpp bla.c
> ...
> # 4 "bla.c"
> #pragma message 9223372036854775807L
> # 4 "bla.c"
>
>
> # 5 "bla.c"
> #pragma message (9223372036854775807L)
> # 5 "bla.c"
>
>
> # 6 "bla.c"
> #pragma message __STDC_LIMIT_MACROS
> # 6 "bla.c"
>
>
>
> # 8 "bla.c"
> #pragma message eq
> # 8 "bla.c"
>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to