AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 2008

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2008.05.24 03:47 "beta2 release", by Frank Warmerdam
2008.05.24 07:30 "Re: beta2 release", by Edward Lam
2008.05.24 15:13 "Re: beta2 release", by Bob Friesenhahn
2008.05.26 13:48 "Re: beta2 release", by Edward Lam
2008.05.26 14:24 "Re: beta2 release - lfind() problem on Win64", by Edward Lam
2008.05.26 15:22 "Re: beta2 release - lfind() problem on Win64", by Frank Warmerdam
2008.05.26 15:31 "Re: beta2 release - lfind() problem on Win64", by Bob Friesenhahn
2008.05.26 15:47 "Re: beta2 release - lfind() problem on Win64", by Edward Lam
2008.05.26 16:07 "Re: beta2 release - lfind() problem on Win64", by Andrey Kiselev
2008.05.26 16:34 "Re: beta2 release - lfind() problem on Win64", by Bob Friesenhahn
2008.05.26 18:02 "Re: beta2 release - lfind() problem on Win64", by Edward Lam
2008.05.26 14:54 "Re: beta2 release -- tiffconf.vc.h patch", by Edward Lam
2008.05.26 15:10 "Re: beta2 release -- tiffconf.vc.h patch", by Frank Warmerdam
2008.05.26 18:07 "Re: beta2 release -- tiffconf.vc.h patch", by Edward Lam
2008.05.26 18:15 "Re: beta2 release -- tiffconf.vc.h patch", by Frank Warmerdam
2008.05.26 19:02 "Re: beta2 release -- tiffconf.vc.h patch", by Edward Lam
2008.05.26 18:17 "Re: beta2 release - TIFFFindField() on Windows", by Edward Lam
2008.05.26 19:32 "Re: beta2 release - predictors", by Edward Lam
2008.05.27 06:55 "Re: beta2 release - predictors", by Andrey Kiselev
2008.05.28 01:09 "Re: beta2 release", by Jay Berkenbilt
2008.05.28 01:15 "Re: beta2 release", by Frank Warmerdam

2008.05.26 18:02 "Re: beta2 release - lfind() problem on Win64", by Edward Lam

Hi Andrey,

Speaking of the port/ code, we use this on our project for strcasecmp():

#ifdef WIN32
     #define strcasecmp(ST1,ST2) stricmp((ST1),(ST2))
     #define strncasecmp(ST1,ST2,N) strnicmp((ST1),(ST2),(N))
#endif

Cheers,
-Edward

Andrey Kiselev wrote:
> On Mon, May 26, 2008 at 10:31:36AM -0500, Bob Friesenhahn wrote:
>> The recent libtiff updates in this area were necessary so that libtiff
>> works properly in 64-bit applications.  This is supposed to be the
>> prototype for lfind:
>>
>>      void *lfind(const void *key, const void *base, size_t *nelp,
>>      size_t width, int (*compar)(const void *, const void *));
>>
>> It seems that the only cure is to add Windows specific code to handle
>> this specific case.
> 
> We have such a code (see port/ directory) and it was used on Windows
> platform until I discovered that lfind is hidden under _lfind name
> there. So we can just continue using our implementation.
> 
> Other option is to use _lfind_s() function which is advertised as a
> "safe" replacement to the old one, but then we will need to modify
> comparison functions declarations too, because _lfind_s passes extra
> parameter down there. The first way is simpler, of course.
> 
> Best regards,
> Andrey
> 
> PS.
> OFF: do they seriously thinking that their "safe" functions really help
> people?
> 
>