aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-08-25 17:26:15 +0200
committerDiego Biurrun <diego@biurrun.de>2014-08-25 17:17:29 -0700
commit0263750a0db723760d61bcaafc6964a371adcdfc (patch)
tree044e68b5e610c8fec37fdf0345d9b2f31f45043d
parent63795fe5b967b93bd476aedfd6a9260b99355525 (diff)
downloadffmpeg-0263750a0db723760d61bcaafc6964a371adcdfc.tar.gz
vfwcap: Add fallback define for HWND_MESSAGE
Some obsolete versions of the MinGW32 runtime (<4.0.0) lack the definition. (cherry picked from commit ab56fabe6294524e99815451ad01e4ff50c6d734) Signed-off-by: Diego Biurrun <diego@biurrun.de>
-rw-r--r--libavdevice/vfwcap.c5
1 files changed, 5 insertions, 0 deletions
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 <windows.h>
#include <vfw.h>
+/* 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;