$ cpp bla.c
# 1 "bla.c"
# 1 "<command-line>"
# 1 "bla.c"
# 1 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/stdint.h" 1 3 4
# 9 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/stdint.h" 3 4
# 1 "/usr/include/stdint.h" 1 3 4
# 14 "/usr/include/stdint.h" 3 4
# 1 "/usr/include/bits/wordsize.h" 1 3 4
# 15 "/usr/include/stdint.h" 2 3 4





typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;

typedef long int64_t;





typedef unsigned char uint8_t;
typedef unsigned short uint16_t;


typedef unsigned int uint32_t;


typedef unsigned long uint64_t;






typedef signed char int_least8_t;
typedef short int_least16_t;
typedef int int_least32_t;

typedef long int_least64_t;




typedef unsigned char uint_least8_t;
typedef unsigned short uint_least16_t;
typedef unsigned int uint_least32_t;

typedef unsigned long uint_least64_t;






typedef signed char int_fast8_t;

typedef long int_fast16_t;
typedef long int_fast32_t;
typedef long int_fast64_t;






typedef unsigned char uint_fast8_t;

typedef unsigned long uint_fast16_t;
typedef unsigned long uint_fast32_t;
typedef unsigned long uint_fast64_t;
# 91 "/usr/include/stdint.h" 3 4
typedef long intptr_t;





typedef unsigned long uintptr_t;







typedef long intmax_t;
typedef unsigned long uintmax_t;
# 10 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/stdint.h" 2 3 4
# 2 "bla.c" 2
# 1 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/limits.h" 1 3 4
# 34 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/limits.h" 3 4
# 1 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/syslimits.h" 1 3 4






# 1 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/limits.h" 1 3 4
# 168 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/limits.h" 3 4
# 1 "/usr/include/limits.h" 1 3 4
# 14 "/usr/include/limits.h" 3 4
# 1 "/usr/include/features.h" 1 3 4
# 14 "/usr/include/features.h" 3 4
# 1 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/sys/cdefs.h" 1 3 4
# 52 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/sys/cdefs.h" 3 4
# 1 "/usr/include/sys/features.h" 1 3 4
# 53 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/sys/cdefs.h" 2 3 4
# 1 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/stddef.h" 1 3 4
# 147 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/stddef.h" 3 4
typedef long int ptrdiff_t;
# 212 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/stddef.h" 3 4
typedef long unsigned int size_t;
# 324 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include/stddef.h" 3 4
typedef short unsigned int wchar_t;
# 54 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/sys/cdefs.h" 2 3 4
# 15 "/usr/include/features.h" 2 3 4
# 15 "/usr/include/limits.h" 2 3 4
# 169 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/limits.h" 2 3 4
# 8 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/syslimits.h" 2 3 4
# 35 "/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/include-fixed/limits.h" 2 3 4
# 3 "bla.c" 2


# 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"



int main(void)
{
   return 0;
}



On 9 April 2014 16:36, Bill Hart <goodwillh...@googlemail.com> wrote:

> 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 <jpfl...@gmail.com> wrote:
>
>> 2014-04-09 16:24 GMT+02:00 Bill Hart <goodwillh...@googlemail.com>:
>> > 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 mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
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