[FFmpeg-devel] Win7 64b/mingw32 compilation fix
Michael Niedermayer
michael at niedermayer.cc
Sun Mar 4 01:07:55 EET 2018
On Fri, Mar 02, 2018 at 11:39:56AM +0100, Pierre Chatelier wrote:
> Hello,
>
> I had an issue to compile ffmpeg under Win7 64 bits/mingw32
> Adding an include was the solution.
>
> Here is a patch
>
> Pierre Chatelier
> os_support.c | 1 +
> 1 file changed, 1 insertion(+)
> 94a8add1b8bf480f59d0330f3c2205b8ffbb1cb2 0001-fix-compilation-under-Win7-64bits-with-mingw32-by-ad.patch
> From 91f049a9424f80961a8bc3406dc60bccd1d516b9 Mon Sep 17 00:00:00 2001
> From: Pierre Chatelier <pierre at chachatelier.fr>
> Date: Fri, 2 Mar 2018 11:28:48 +0100
> Subject: [PATCH 1/1] fix compilation under Win7 64bits with mingw32 by added
> <WinError.h> the EAI_MEMORY macro was mapped to ERROR_NOT_ENOUGH_MEMORY which
> was not defined
>
breaks build on mingw64
src/libavformat/os_support.c:39:22: fatal error: WinError.h: No such file or directory
#include <WinError.h>
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180304/29baf93b/attachment.sig>
More information about the ffmpeg-devel
mailing list