VirtualBox

Changeset 62592 in vbox for trunk/include/iprt/nt


Ignore:
Timestamp:
Jul 27, 2016 1:24:48 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109161
Message:

IPRT: More unused parameters and undefined preprocessor macor warning (C4668) fixes/workarounds. The latter triggers in stdint.h from the compiler and in windows SDK/DDK headers.

Location:
trunk/include/iprt/nt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt-and-windows.h

    r62474 r62592  
    3939#define IPRT_NT_HAVE_CURRENT_TEB_MACRO
    4040#define WIN32_NO_STATUS
    41 #include <Windows.h>
     41#include <iprt/win/windows.h>
    4242#undef WIN32_NO_STATUS
    4343
  • trunk/include/iprt/nt/nt.h

    r62474 r62592  
    125125
    126126
     127# pragma warning(push)
     128# pragma warning(disable: 4668)
    127129# define WIN32_NO_STATUS
    128130# include <windef.h>
     
    131133# undef WIN32_NO_STATUS
    132134# include <ntstatus.h>
     135# pragma warning(pop)
    133136
    134137
     
    179182 * Use ntifs.h and wdm.h.
    180183 */
     184# pragma warning(push)
    181185# ifdef RT_ARCH_X86
    182186#  define _InterlockedAddLargeStatistic  _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap
    183 #  pragma warning(disable : 4163)
     187#  pragma warning(disable: 4163)
    184188# endif
     189# pragma warning(disable: 4668)
    185190
    186191# include <ntifs.h>
     
    188193
    189194# ifdef RT_ARCH_X86
    190 #  pragma warning(default : 4163)
    191195#  undef _InterlockedAddLargeStatistic
    192196# endif
     197# pragma warning(pop)
    193198
    194199# define IPRT_NT_NEED_API_GROUP_NTIFS
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