On Wed, Oct 8, 2014 at 7:03 PM, James Almer <[email protected]> wrote:
> This silences warnings about passing arguments from incompatible pointer type
> when targeting Windows Vista or newer.
>
> Signed-off-by: James Almer <[email protected]>
> ---
> Sent the wrong version earlier, my bad.
> The request for testing i made before still stands.
>
> compat/w32pthreads.h | 23 +++++++++++++----------
> configure | 2 ++
> 2 files changed, 15 insertions(+), 10 deletions(-)
>
> diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h
> index d0b90e8..b905a95 100644
> --- a/compat/w32pthreads.h
> +++ b/compat/w32pthreads.h
> @@ -54,12 +54,15 @@ typedef struct pthread_t {
> * not mutexes */
> typedef CRITICAL_SECTION pthread_mutex_t;
>
> -/* This is the CONDITIONAL_VARIABLE typedef for using Window's native
> - * conditional variables on kernels 6.0+.
> - * MinGW does not currently have this typedef. */
> +/* This is the CONDITION_VARIABLE typedef for using Window's native
Please fix the Windows' typo while at it.
> + * conditional variables on kernels 6.0+. */
> +#if HAVE_CONDITION_VARIABLE_PTR
> +typedef CONDITION_VARIABLE pthread_cond_t;
> +#else
> typedef struct pthread_cond_t {
> - void *ptr;
> + void *Ptr;
> } pthread_cond_t;
> +#endif
[...]
Timothy
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel