Mercurial > hg > boxvnt
changeset 1:6d1e2fb6763b
Added workarounds for incomplete NT DDK headers in Open Watcom 1.9.
author | Michal Necasek <mnecasek@yahoo.com> |
---|---|
date | Mon, 21 Jul 2014 23:46:56 +0200 |
parents | 7b21e0889b05 |
children | 1ac5a9d19fc6 |
files | videomp.c |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/videomp.c Thu Jul 17 23:22:50 2014 +0200 +++ b/videomp.c Mon Jul 21 23:46:56 2014 +0200 @@ -10,12 +10,25 @@ #include <miniport.h> #include <ntddvdeo.h> #include <video.h> -#include <dderror.h> #include <stddef.h> #include "videomp.h" #include "boxv.h" +/* Accommodate incomplete DDK headers shipped with Open Watcom 1.9. */ +#ifndef SIZE_OF_NT4_VIDEO_HW_INITIALIZATION_DATA + +#define SIZE_OF_NT4_VIDEO_HW_INITIALIZATION_DATA FIELD_OFFSET( VIDEO_HW_INITIALIZATION_DATA, HwStartDma ) +#define SIZE_OF_W2K_VIDEO_HW_INITIALIZATION_DATA FIELD_OFFSET( VIDEO_HW_INITIALIZATION_DATA, Reserved ) +#define SIZE_OF_WXP_VIDEO_HW_INITIALIZATION_DATA (SIZE_OF_W2K_VIDEO_HW_INITIALIZATION_DATA + sizeof( ULONG )) + +#include <winerror.h> /* This should really be dderror.h... */ + +#else + +#include <dderror.h> + +#endif /* Number of PCI access ranges. */ #define NUM_PCI_RANGES 3