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
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to