win-pvdrivers

changeset 344:f6841337b2c2

remove little bits of #ifdef MINGW32s scattered around in favor of putting all hacks in one place
author Andy Grover <andy.grover@oracle.com>
date Tue Jul 01 15:16:58 2008 -0700 (2008-07-01)
parents 2be08f708250
children 718e0ffe104c
files common/include/xen_windows.h xenpci/xenpci.h
line diff
     1.1 --- a/common/include/xen_windows.h	Sun Jun 22 18:14:30 2008 -0700
     1.2 +++ b/common/include/xen_windows.h	Tue Jul 01 15:16:58 2008 -0700
     1.3 @@ -35,12 +35,6 @@ typedef UINT32 uint32_t;
     1.4  typedef UINT64 uint64_t;
     1.5  #endif
     1.6  
     1.7 -#ifdef __MINGW32__
     1.8 -#include <stdio.h>
     1.9 -#define RtlStringCbCopyA(dst, dst_len, src) strncpy(dst, src, dst_len)
    1.10 -#define RtlStringCbPrintfA(args...) snprintf(args)
    1.11 -#define RtlStringCbVPrintfA(args...) vsnprintf(args)
    1.12 -#endif
    1.13  #include <xen.h>
    1.14  
    1.15  #define _PAGE_PRESENT  0x001UL
     2.1 --- a/xenpci/xenpci.h	Sun Jun 22 18:14:30 2008 -0700
     2.2 +++ b/xenpci/xenpci.h	Tue Jul 01 15:16:58 2008 -0700
     2.3 @@ -26,11 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fi
     2.4  #include <ntddk.h>
     2.5  
     2.6  #ifdef __MINGW32__
     2.7 -#define KeMemoryBarrier() asm("mfence;")
     2.8 -/* mingw-runtime 3.13 is buggy */
     2.9 -#undef KeGetCurrentProcessorNumber
    2.10 -#define KeGetCurrentProcessorNumber() \
    2.11 -  ((ULONG)KeGetCurrentKPCR()->Number)
    2.12 +#include "mingw_extras.h"
    2.13  #else
    2.14  #define DDKAPI
    2.15  #include <wdm.h>