On 20.03.2010, at 00:25, Michael Sweet wrote:
> What I do for CUPS is #define two constants for the printf format and any
> needed cast:
>
> #ifdef HAVE_LONG_LONG
> # define CUPS_LLFMT "%lld"
> # define CUPS_LLCAST (long long)
> #else
> # define CUPS_LLFMT "%ld"
> # define CUPS_LLCAST (long)
> #endif /* HAVE_LONG_LONG */
>
> Then any debug (or otherwise) printfs can use:
>
> size_t big;
> printf("Something big: " CUPS_LLFMT "\n", CUPS_LLCAST big);
Note: we do also have them in FLTK with corresponding names
FLTK_LLFMT and FLTK_LLCAST. Thanks, Mike, you added them together
with large file support.
Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev