projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63795fe
)
vfwcap: Add fallback define for HWND_MESSAGE
author
Diego Biurrun
<diego@biurrun.de>
Mon, 25 Aug 2014 15:26:15 +0000
(17:26 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Tue, 26 Aug 2014 00:17:29 +0000
(17:17 -0700)
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>
libavdevice/vfwcap.c
patch
|
blob
|
history
diff --git
a/libavdevice/vfwcap.c
b/libavdevice/vfwcap.c
index
c067be3
..
b47de1b
100644
(file)
--- 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;