Changeset 62683 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Jul 29, 2016 1:16:22 PM (8 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltCmn-win.h
r62490 r62683 58 58 #include <iprt/list.h> 59 59 60 RT_C_DECLS_BEGIN 61 /* ntddk.h has a missing #pragma pack(), work around it 62 * see #ifdef VBOX_WITH_WORKAROUND_MISSING_PACK below for detail */ 63 #define VBOX_WITH_WORKAROUND_MISSING_PACK 64 #if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK) 65 # define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap 66 # define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap 67 # define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap 68 # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap 69 # define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap 70 # define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap 71 # define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap 72 # define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap 73 # pragma warning(disable : 4163) 74 # ifdef VBOX_WITH_WORKAROUND_MISSING_PACK 75 # pragma warning(disable : 4103) 76 # endif 77 # include <ntddk.h> 78 # pragma warning(default : 4163) 79 # ifdef VBOX_WITH_WORKAROUND_MISSING_PACK 80 # pragma pack() 81 # pragma warning(default : 4103) 82 # endif 83 # undef _InterlockedExchange 84 # undef _InterlockedExchangeAdd 85 # undef _InterlockedCompareExchange 86 # undef _InterlockedAddLargeStatistic 87 # undef _interlockedbittestandset 88 # undef _interlockedbittestandreset 89 # undef _interlockedbittestandset64 90 # undef _interlockedbittestandreset64 91 # include <ndis.h> 92 #else 93 //# include <ntddk.h> 94 /* can include ndis.h right away */ 95 # include <ndis.h> 96 #endif 97 RT_C_DECLS_END 60 #include <iprt/nt/ntddk.h> 61 #include <iprt/nt/ndis.h> 98 62 99 63 #define VBOXNETFLT_OS_SPECFIC 1 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf-win.cpp
r62490 r62683 47 47 #include <VBox/intnetinline.h> 48 48 49 /// @todo Not sure why, but can it help with build errors? 50 RT_C_DECLS_BEGIN 51 /* ntddk.h has a missing #pragma pack(), work around it 52 * see #ifdef VBOX_WITH_WORKAROUND_MISSING_PACK below for detail */ 53 #define VBOX_WITH_WORKAROUND_MISSING_PACK 54 #if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK) 55 # define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap 56 # define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap 57 # define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap 58 # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap 59 # define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap 60 # define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap 61 # define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap 62 # define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap 63 # pragma warning(disable : 4163) 64 # ifdef VBOX_WITH_WORKAROUND_MISSING_PACK 65 # pragma warning(disable : 4103) 66 # endif 67 # include <ntddk.h> 68 # pragma warning(default : 4163) 69 # ifdef VBOX_WITH_WORKAROUND_MISSING_PACK 70 # pragma pack() 71 # pragma warning(default : 4103) 72 # endif 73 # undef _InterlockedExchange 74 # undef _InterlockedExchangeAdd 75 # undef _InterlockedCompareExchange 76 # undef _InterlockedAddLargeStatistic 77 # undef _interlockedbittestandset 78 # undef _interlockedbittestandreset 79 # undef _interlockedbittestandset64 80 # undef _interlockedbittestandreset64 81 # include <ndis.h> 82 # include <netioapi.h> 83 #else 84 # include <ntddk.h> 85 # include <netioapi.h> 86 /* can include ndis.h right away */ 87 # include <ndis.h> 88 #endif 49 #include <iprt/nt/ntddk.h> 50 #include <iprt/nt/ndis.h> 51 #include <netioapi.h> 89 52 #include <mstcpip.h> 90 RT_C_DECLS_END91 53 92 54 #define LogError(x) DbgPrint x
Note:
See TracChangeset
for help on using the changeset viewer.