2009/12/22 Alon Bar-Lev <alon.bar...@gmail.com>: > On Tue, Dec 22, 2009 at 7:53 PM, Tor Lillqvist <t...@iki.fi> wrote: >>> But this is *UGLY*.... And I don't have inttypes.h on all platforms... >>> For example solaris8 does not define these constants. >> >> That is why there exists libraries and higher level languages that >> make portability easier. >> >> For instance, GLib has G_GINT64_FORMAT. And then there is Java. >> >> --tml >> > > Funny... :) > Had I could do what I need in Java I would have... > > I don't understand why the gcc was modified to stop recognizing %ll > even if mingw emulation is used, which suppose to provide %ll, right? > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public >
Well, we have here (at least for the native printf functions) to assume smallest supported feature-set. By using msvcrt.dll (Vista or newer) you are using in fact msvcr80.dll + feature set, which supports %ll specifier, but older ms runtimes don't. By specifying _POSIX, or by defining __MINGW_USE_ANSI_STDIO=1, you can use the POSIX emulation printf functions, which are supporting %ll (and also %Lg, etc). But be aware that just the printf functions are currently emulated, not the scanf ones. Cheers, Kai -- | (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public