Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib
On Fri, Jun 25, 2010 at 09:34:12PM -0600, M. Warner Losh wrote:
> You could easily enough have something like the following in autoconf
> to generate that:
>
> #include <stdlib.h>
> #include <stdio.h>
>
> int main(int argc, char **argv)
> {
> size_t foo = ~0;
> printf("#ifndef SIZE_MAX\n#define SIZE_MAX %llu\n#endif\n",
> (unsigned long long)foo);
> return (0);
> }
There is one problem with this approach. It is not cross-compiling safe.
The code using the sizeof macros from autoconf is.
Joerg
Home |
Main Index |
Thread Index |
Old Index