[vlc-commits] [Git][videolan/vlc][master] vlc_fixup: don't define the proper lfind for win64
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Fri Jul 15 13:23:51 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
6642dc1c by Steve Lhomme at 2022-07-15T13:12:28+00:00
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..
- - - - -
1 changed file:
- include/vlc_fixups.h
Changes:
=====================================
include/vlc_fixups.h
=====================================
@@ -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
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6642dc1c10134c70658cf81be752624b8b61015f
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6642dc1c10134c70658cf81be752624b8b61015f
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list