svn commit: r206843 - head/sbin/ipfw
Luigi Rizzo
rizzo at iet.unipi.it
Tue Apr 20 05:31:54 UTC 2010
On Mon, Apr 19, 2010 at 03:44:25PM -0700, Julian Elischer wrote:
> On 4/19/10 9:01 AM, Robert Noland wrote:
> >
> >
> >Luigi Rizzo wrote:
>
>
> [...]
>
> >Index: sbin/ipfw/ipfw2.c
> >===================================================================
> >--- sbin/ipfw/ipfw2.c (revision 206844)
> >+++ sbin/ipfw/ipfw2.c (working copy)
> >@@ -326,7 +326,7 @@
> >#ifdef TCC
> >#define U64_FMT "I64"
> >#else
> >-#define U64_FMT "llu"
> >+#define U64_FMT "ju"
> >#endif
> >uint64_t d;
>
> believe there is a posix define for this?
> (though I can't remember it right now).
the reason for the above code is that MSVC (actually, the DLL in
Windows -- so the problem exists also for TCC on Windows) does not
support %llu or %ju but only %I64 and that is why i need this ugly
code (to tell the truth i am not even sure that the various libc
for embedded platforms support %ju).
cheers
luigi
More information about the svn-src-all
mailing list