[FFmpeg-devel] [PATCH] cmdutils: fix implicit declaration of SetDllDirectory function
James Almer
jamrial at gmail.com
Tue Aug 30 05:10:15 EEST 2016
On 8/29/2016 10:42 AM, Tobias Rapp wrote:
> Attached patch fixes a build error on my system (Ubuntu 14.04, mingw-w64 3.1.0, gcc-mingw-w64 4.8.2) introduced by commit 3bf142c77337814458ed8e036796934032d9837f.
Interesting. windows.h is already included if CommandLineToArgvW()
is available. I guess this means old mingw-w64 doesn't define it.
>
> As the original commit has been backported to older releases (2.8, 3.0 and 3.1 as far as I can see) it probably makes sense to backport this fix, too.
Applied where it's needed. Thanks.
>
> Regards,
> Tobias
>
> 0001-cmdutils-fix-implicit-declaration-of-SetDllDirectory.patch
>
>
> From 97c153fab37a44946e54fcea6b48259cb0c24143 Mon Sep 17 00:00:00 2001
> From: Tobias Rapp <t.rapp at noa-archive.com>
> Date: Mon, 29 Aug 2016 15:25:58 +0200
> Subject: [PATCH] cmdutils: fix implicit declaration of SetDllDirectory
> function
>
> Signed-off-by: Tobias Rapp <t.rapp at noa-archive.com>
> ---
> cmdutils.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/cmdutils.c b/cmdutils.c
> index 6960f8c..44f44cd 100644
> --- a/cmdutils.c
> +++ b/cmdutils.c
> @@ -61,6 +61,9 @@
> #include <sys/time.h>
> #include <sys/resource.h>
> #endif
> +#ifdef _WIN32
> +#include <windows.h>
> +#endif
>
> static int init_report(const char *env);
>
> -- 1.9.1
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list