[vlc-devel] [PATCH] vlc_fixup: make sure win64 lfind calls use the proper variable size
Steve Lhomme
robux4 at ycbcr.xyz
Mon Jul 15 12:31:41 CEST 2019
Oops, wrong title
On 2019-07-15 12:12, Steve Lhomme wrote:
> Co-authored-by: RĂ©mi Denis-Courmont <remi at remlab.net>
> ---
> modules/access/dtv/access.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
> index 55a320ceb9..5561a9a507 100644
> --- a/modules/access/dtv/access.c
> +++ b/modules/access/dtv/access.c
> @@ -32,6 +32,12 @@
> #include <search.h>
> #endif
>
> +#if defined(_WIN64)
> +/* the mingw32 lfind / win32 _lfind expects an unsigned int* in the third
> + parameter instead of a size_t* */
> +#define lfind(a,b,c,d,e) lfind(a,b,&(unsigned){ *(c) },d,e)
> +#endif
> +
> #include "dtv.h"
>
> #define ADAPTER_TEXT N_("DVB adapter")
> --
> 2.17.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
More information about the vlc-devel
mailing list