[Zlib-devel] TR: the win32\Makefile.msc diff
Jonathan Nieder
jrnieder at gmail.com
Mon Mar 22 00:55:50 EDT 2010
Hi,
William A. Rowe Jr. wrote:
> On 3/21/2010 4:22 PM, Enrico Weigelt wrote:
>> But you can make the compiler fail if sizeof(..) doesnt match a
>> specific size, so use for a compile-test (in ./configure).
>
> The compiler? Do you mean at run time, e.g. if (sizeof(z_off64_t) != 8) exit(1);
> or something obvious I'm not seeing?
>
> You are suggesting fail within the "compiler", e.g. cpp?
See BUILD_BUG_ON_ZERO in [1]. The history of that file has several versions. :)
Hope that helps,
Jonathan
[1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=include/linux/kernel.h;hb=master
More information about the Zlib-devel
mailing list