Commit 3c59237f authored by Rafaël Carré's avatar Rafaël Carré

dxva2: include needed headers

For mingw.org, we ship a single dxva2api.h which contains stuff
normally present in dxva.h, so skip dxva.h.
(cherry picked from commit 9aa30ff3ed7abf56fda84b84a90e6644e09fe70c)
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 00ef2665
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
#include <commctrl.h> #include <commctrl.h>
#include <shlwapi.h> #include <shlwapi.h>
#include <d3d9.h> #include <d3d9.h>
#include <dxva2api.h>
#include <initguid.h> /* must be last included to not redefine existing GUIDs */ #include <initguid.h> /* must be last included to not redefine existing GUIDs */
...@@ -84,6 +85,8 @@ ...@@ -84,6 +85,8 @@
# undef MS_GUID # undef MS_GUID
# define MS_GUID DEFINE_GUID /* dxva2api.h fails to declare those, redefine as static */ # define MS_GUID DEFINE_GUID /* dxva2api.h fails to declare those, redefine as static */
# define DXVA2_E_NEW_VIDEO_DEVICE MAKE_HRESULT(1, 4, 4097) # define DXVA2_E_NEW_VIDEO_DEVICE MAKE_HRESULT(1, 4, 4097)
# else
# include <dxva.h>
# endif # endif
#endif /* __MINGW32__ */ #endif /* __MINGW32__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment