From ab56fabe6294524e99815451ad01e4ff50c6d734 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Mon, 25 Aug 2014 17:26:15 +0200 Subject: vfwcap: Add fallback define for HWND_MESSAGE Some obsolete versions of the MinGW32 runtime (<4.0.0) lack the definition. --- libavdevice/vfwcap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavdevice/vfwcap.c') diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index c067be3f83..b47de1b282 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -27,6 +27,11 @@ #include #include +/* Some obsolete versions of MinGW32 before 4.0.0 lack this. */ +#ifndef HWND_MESSAGE +#define HWND_MESSAGE ((HWND) -3) +#endif + struct vfw_ctx { const AVClass *class; HWND hwnd; -- cgit v1.2.3