[FFmpeg-devel] [PATCH 1/2] compat/w32dlfcn: remove backup definitions for safe LoadLibrary flags

James Almer jamrial at gmail.com
Tue Jul 30 18:29:49 EEST 2024


On 7/30/2024 11:09 AM, Ramiro Polla wrote:
> Since we now expect C17, it is safe to assume that the toolchain will
> have these flags defined.

We expect C11, but probe for C17 and use it if available.

> ---
>   compat/w32dlfcn.h | 6 ------
>   1 file changed, 6 deletions(-)
> 
> diff --git a/compat/w32dlfcn.h b/compat/w32dlfcn.h
> index ac20e83a7a..8ae718f4bd 100644
> --- a/compat/w32dlfcn.h
> +++ b/compat/w32dlfcn.h
> @@ -120,12 +120,6 @@ exit:
>           return module;
>       }
>   #endif
> -#ifndef LOAD_LIBRARY_SEARCH_APPLICATION_DIR
> -#   define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 0x00000200
> -#endif
> -#ifndef LOAD_LIBRARY_SEARCH_SYSTEM32
> -#   define LOAD_LIBRARY_SEARCH_SYSTEM32        0x00000800
> -#endif
>   #if HAVE_WINRT
>       if (!name_w)
>           return NULL;


More information about the ffmpeg-devel mailing list