| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2008.09.05 13:09 "Re: beta2 release - lfind() problem on Win64", by Edward LamAndrey Kiselev wrote:
> 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?
- Rename port's lfind() to _TIFFlfind()
- In tif_config.vc.h,
#define HAVE_BROKEN_LFIND 1
- In tif_dirinfo.c,
#ifdef HAVE_BROKEN_LFIND
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
|
|||||||