2008.08.29 22:53 "[Tiff] Some security fixes from RHEL", by Even Rouault

2008.09.05 13:09 "Re: [Tiff] beta2 release - lfind() problem on Win64", by Edward Lam

Maybe the best solution is to remove the

#define lfind _lfind

line from the tif_config.vc and always use the port/lfind.c on Windows. Could you try it on Win64?

I tried that before and it doesn't work because __STDC__ is not defined by default and so in search.h, it also declares lfind() without the underscore.

Here's another way to hack at this. What do you think?

          extern void *_TIFFlfind(const void *key, const void *base,

                                  size_t *nmemb, size_t size,
                                  int(*compar)(const void *,
                                               const void *));
      #else
          #define _TIFFlfind lfind
      #endif
- In tif_dirinfo.c, replace all lfind() calls to _TIFFlfind()

Cheers,

-Edward