[Zlib-devel] Explicit link to libc
Mark Adler
madler at alumni.caltech.edu
Sun Apr 4 01:36:21 EDT 2010
On Apr 2, 2010, at 10:43 AM, Enrico Weigelt wrote:
> * newer versions may extend the existing interface, but NEVER
> break the existing one (so old apps always fit the new lib)
I agree. This is why supporting 64-bit file offsets in Windows will require some thought.
The Large File Summit had this same constraint. Their solution was to retain the old functions for linking, provide new types and functions for 64-bit offsets using name64, and if requested via a #define, redefine the old names to point to the new name64's. This allows compiling new programs or recompiling old programs to use 64-bit offsets with no fuss, but also avoids breaking old programs linking to a dynamic library.
Can we apply this same solution somehow in Windows? Or has this problem been faced in the Windows world with a different standard solution?
Mark
More information about the Zlib-devel
mailing list