VirtualBox

Ignore:
Timestamp:
Jul 29, 2016 1:16:22 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109256
Message:

Use the iprt/nt/ntddk.h wrapper for ntddk.h, eliminating duplicate ugly warning workarounds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp

    r62492 r62683  
    6666#  undef PAGE_SIZE
    6767#  undef PAGE_SHIFT
    68 #  define VBOX_WITH_WORKAROUND_MISSING_PACK
    69 #  if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)
    70 #    define _InterlockedExchange           _InterlockedExchange_StupidDDKVsCompilerCrap
    71 #    define _InterlockedExchangeAdd        _InterlockedExchangeAdd_StupidDDKVsCompilerCrap
    72 #    define _InterlockedCompareExchange    _InterlockedCompareExchange_StupidDDKVsCompilerCrap
    73 #    define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
    74 #    define _interlockedbittestandset      _interlockedbittestandset_StupidDDKVsCompilerCrap
    75 #    define _interlockedbittestandreset    _interlockedbittestandreset_StupidDDKVsCompilerCrap
    76 #    define _interlockedbittestandset64    _interlockedbittestandset64_StupidDDKVsCompilerCrap
    77 #    define _interlockedbittestandreset64  _interlockedbittestandreset64_StupidDDKVsCompilerCrap
    78 #    pragma warning(disable : 4163)
    79 #    ifdef VBOX_WITH_WORKAROUND_MISSING_PACK
    80 #     pragma warning(disable : 4103)
    81 #    endif
    82 #    include <ntddk.h>
    83 #    pragma warning(default : 4163)
    84 #    ifdef VBOX_WITH_WORKAROUND_MISSING_PACK
    85 #     pragma pack()
    86 #     pragma warning(default : 4103)
    87 #    endif
    88 #    undef  _InterlockedExchange
    89 #    undef  _InterlockedExchangeAdd
    90 #    undef  _InterlockedCompareExchange
    91 #    undef  _InterlockedAddLargeStatistic
    92 #    undef  _interlockedbittestandset
    93 #    undef  _interlockedbittestandreset
    94 #    undef  _interlockedbittestandset64
    95 #    undef  _interlockedbittestandreset64
    96 #  else
    97 #    include <ntddk.h>
    98 #  endif
     68#  include <iprt/nt/ntddk.h>
    9969#  ifndef VBOXVDBG_VR_LAL_DISABLE
    10070static LOOKASIDE_LIST_EX g_VBoxVrLookasideList;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette