On 1/30/2010 12:11, David Cleaver wrote: > Hello again, > > I know it wasn't long ago that I was asking about using %llu in fscanf or > sscanf. However, I am wondering if anything has changed in this regard? Does > MingW64 support %llu in the scanf functions? > > Also, in the future, is there an easy way for me to find out this information > on > my own? Perhaps if someone could point out which file something like this was > defined in, I could look at the latest version of the file to see if the > change > is in there? > > If it affects the answers, I'm using Windows XP x64 version, and I will be > using > Ozkan's build from mingw-w64-bin_x86_64-mingw_20100123_sezero.zip > > I'd like to use the #define __USE_MINGW_ANSI_STDIO 1 in the code. Can I wrap > this define inside of a check like: > #ifdef __MINGW64__ > #define __USE_MINGW_ANSI_STDIO 1 > #endif > > Is that the correct ifdef I should be using, or is there a different define I > should be looking for? > > -David C. >
Hi, There is no such macro as __MINGW64__, use __MINGW64_VERSION_MAJOR instead, its guaranteed to be defined if you include any mingw-w64 headers. I think __USE_MINGW_ANSI_STDIO only applies to the printf family, the scanf family has not been ported yet, so you'll need to use %I64u instead of %llu. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
