vlc_fixup: don't define the proper lfind for win64

win64 has its own version of lfind() but assumes the 3rd parameter is an
unsigned.

This commit matches the #ifdef _WIN64 below this code which uses the Windows
version with the unsigned limit. The comment is copied from there as well.
This commit is contained in:
Steve Lhomme 2022-07-12 11:39:34 +02:00 committed by Hugo Beauzée-Luyssen
parent 2c71cbdfc1
commit 6642dc1c10
1 changed files with 3 additions and 0 deletions

View File

@ -497,8 +497,11 @@ void *tsearch( const void *key, void **rootp, int(*cmp)(const void *, const void
void *tfind( const void *key, void * const *rootp, int(*cmp)(const void *, const void *) );
void *tdelete( const void *key, void **rootp, int(*cmp)(const void *, const void *) );
void twalk( const void *root, void(*action)(const void *nodep, VISIT which, int depth) );
#ifndef _WIN64
/* the Win32 prototype of lfind() expects an unsigned* for 'nelp' */
void *lfind( const void *key, const void *base, size_t *nmemb,
size_t size, int(*cmp)(const void *, const void *) );
#endif
#endif /* HAVE_SEARCH_H */
#ifdef _WIN64