<html><head></head><body>Ok.<br><br>It won't work for the theoretical case that array is really large, but that's not a regression.<br><br><div class="gmail_quote">Le 16 juillet 2019 10:44:22 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">So now we include search.h for every file we compile.<br><br>Co-authored-by: Rémi Denis-Courmont <remi@remlab.net><hr> include/vlc_fixups.h | 10 ++++++++++<br> 1 file changed, 10 insertions(+)<br><br>diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h<br>index 2164f690b1..c59e398912 100644<br>--- a/include/vlc_fixups.h<br>+++ b/include/vlc_fixups.h<br>@@ -490,6 +490,16 @@ void twalk( const void *root, void(*action)(const void *nodep, VISIT which, int<br> void *lfind( const void *key, const void *base, size_t *nmemb,<br> size_t size, int(*cmp)(const void *, const void *) );<br> #endif /* HAVE_SEARCH_H */<br>+<br>+#ifdef _WIN64<br>+# ifdef HAVE_SEARCH_H<br>+# include <search.h><br>+# endif<br>+/* the Win32 prototype of lfind() expects an unsigned* for 'nelp' */<br>+# define lfind(a,b,c,d,e) \<br>+ lfind(a,b, &(unsigned){ (*(c) > UINT_MAX) ? UINT_MAX : *(c) }, d,e)<br>+#endif /* _WIN64 */<br>+<br> #ifndef HAVE_TDESTROY<br> void tdestroy( void *root, void (*free_node)(void *nodep) );<br> #endif</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>