win-pvdrivers

changeset 910:1ee7940af105

Fix compilation under older DDK
author James Harper <james.harper@bendigoit.com.au>
date Fri Apr 29 23:56:03 2011 +1000 (2011-04-29)
parents adee8f8a8fcc
children 60e760e70c21
files xenpci/evtchn.c xenpci/xenpci_dbgprint.c xenpci/xenpci_fdo.c xenpci/xenpci_highsync.c
line diff
     1.1 --- a/xenpci/evtchn.c	Fri Apr 15 22:31:53 2011 +1000
     1.2 +++ b/xenpci/evtchn.c	Fri Apr 29 23:56:03 2011 +1000
     1.3 @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fi
     1.4  #include "xenpci.h"
     1.5  
     1.6  /* Not really necessary but keeps PREfast happy */
     1.7 -#if (NTDDI_VERSION >= NTDDI_WINXP)
     1.8 +#if (VER_PRODUCTBUILD >= 7600)
     1.9  static KDEFERRED_ROUTINE EvtChn_DpcBounce;
    1.10  #endif
    1.11  
     2.1 --- a/xenpci/xenpci_dbgprint.c	Fri Apr 15 22:31:53 2011 +1000
     2.2 +++ b/xenpci/xenpci_dbgprint.c	Fri Apr 29 23:56:03 2011 +1000
     2.3 @@ -54,7 +54,7 @@ typedef struct _IDT
     2.4  #pragma pack()
     2.5  
     2.6  /* Not really necessary but keeps PREfast happy */
     2.7 -#if (NTDDI_VERSION >= NTDDI_WINXP)
     2.8 +#if (VER_PRODUCTBUILD >= 7600)
     2.9  static KBUGCHECK_CALLBACK_ROUTINE XenPci_BugcheckCallback;
    2.10  #endif
    2.11  KBUGCHECK_CALLBACK_RECORD callback_record;
     3.1 --- a/xenpci/xenpci_fdo.c	Fri Apr 15 22:31:53 2011 +1000
     3.2 +++ b/xenpci/xenpci_fdo.c	Fri Apr 29 23:56:03 2011 +1000
     3.3 @@ -29,7 +29,7 @@ extern PMDL balloon_mdl_head;
     3.4  
     3.5  /* Not really necessary but keeps PREfast happy */
     3.6  static EVT_WDF_WORKITEM XenPci_SuspendResume;
     3.7 -#if (NTDDI_VERSION >= NTDDI_WINXP)
     3.8 +#if (VER_PRODUCTBUILD >= 7600)
     3.9  static KSTART_ROUTINE XenPci_BalloonThreadProc;
    3.10  #endif
    3.11  
     4.1 --- a/xenpci/xenpci_highsync.c	Fri Apr 15 22:31:53 2011 +1000
     4.2 +++ b/xenpci/xenpci_highsync.c	Fri Apr 29 23:56:03 2011 +1000
     4.3 @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fi
     4.4  #include "xenpci.h"
     4.5  
     4.6  /* Not really necessary but keeps PREfast happy */
     4.7 -#if (NTDDI_VERSION >= NTDDI_WINXP)
     4.8 +#if (VER_PRODUCTBUILD >= 7600)
     4.9  static KDEFERRED_ROUTINE XenPci_HighSyncCallFunction0;
    4.10  static KDEFERRED_ROUTINE XenPci_HighSyncCallFunctionN;
    4.11  #endif