Re: [Mingw-w64-public] PRIu64 and uint64_t

2013-06-09 Thread Jim Michaels
is there a way to detect compilation  with --ansi or --posix? > > From: Tony Theodore >To: Gunnar >Cc: mingw-w64-public@lists.sourceforge.net >Sent: Sunday, June 9, 2013 8:26 PM >Subject: Re: [Mingw-w64-public] PRIu64 and uint64_t > > > >On 03/06/2013, at 2

Re: [Mingw-w64-public] PRIu64 and uint64_t

2013-06-09 Thread Tony Theodore
On 03/06/2013, at 2:52 AM, Gunnar wrote: > In MinGW564 the code: > > #define __STDC_FORMAT_MACROS 1 > #include > > .. > .. > > uint64_t i = 0; > printf("i = %" PRIu64 "\n", i); > > > > leads to a "unknown conversion type character 'l' in format". In MiGW32 it > compiles witout a warning.

[Mingw-w64-public] PRIu64 and uint64_t

2013-06-09 Thread Gunnar
In MinGW564 the code: #define __STDC_FORMAT_MACROS 1 #include .. .. uint64_t i = 0; printf("i = %" PRIu64 "\n", i); leads to a "unknown conversion type character 'l' in format". In MiGW32 it compiles witout a warning. The command that I use is x86_64-w64-mingw32-gcc-4.8.0.exe -fexception