Changeset 92902 in vbox for trunk/include/iprt
- Timestamp:
- Dec 14, 2021 10:06:10 PM (3 years ago)
- Location:
- trunk/include/iprt/win
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/win/d3d9.h
r85121 r92902 30 30 #endif 31 31 32 /* d3d9.h includes windows.h (via objbase.h -> rpc.h), so do it up front using 33 our wrappers to avoid needing to duplicate warning workarounds for it. */ 34 #include <iprt/win/windows.h> 35 32 36 #ifdef _MSC_VER 33 37 # pragma warning(push) -
trunk/include/iprt/win/objbase.h
r85121 r92902 30 30 #endif 31 31 32 /* objbase.h includes windows.h via rpc.h, so get ahead of it and include 33 it here via our cleanup wrapper. */ 34 #include <iprt/win/windows.h> 35 32 36 #ifdef _MSC_VER 33 37 # pragma warning(push) -
trunk/include/iprt/win/windows.h
r85121 r92902 28 28 #ifndef RT_WITHOUT_PRAGMA_ONCE 29 29 # pragma once 30 #endif 31 32 33 /* winioctl.h in windows 10 SDKs up to 22000(?) has a warning(push/pop) bug in the 34 portion taken from ntddscm.h causing trouble when using _WIN32_WINNT or NTDDI_VERSION 35 older than NTDDI_WIN10_RS5. In 18362 winioctl.h also tests against _WIN32_WINNT_WIN10_TH2 36 and other sdkddkver.h defines which only exist in NTDDI variants, not in _WIN32_WINNT_XXX, 37 so we fake up those too to keep the precompiler warning free. 38 39 Work around this by blocking out the buggy section on winioctl.h for now if the 40 NTDDI_VERSION target is too small. 41 42 WDK_NTDDI_VERSION is not present in the W7 SDK, not sure when exactly it was added. 43 NTDDI_WIN10_RS5 is W10 1809. NTDDI_WIN10_CO is Windows 11? */ 44 #include <sdkddkver.h> 45 #ifdef _WIN32_WINNT_WIN10 46 # ifndef _WIN32_WINNT_WIN10_TH2 47 # define _WIN32_WINNT_WIN10_TH2 _WIN32_WINNT_WIN10 48 # endif 49 # ifndef _WIN32_WINNT_WIN10_RS1 50 # define _WIN32_WINNT_WIN10_RS1 _WIN32_WINNT_WIN10 51 # endif 52 # ifndef _WIN32_WINNT_WIN10_RS2 53 # define _WIN32_WINNT_WIN10_RS2 _WIN32_WINNT_WIN10 54 # endif 55 # ifndef _WIN32_WINNT_WIN10_RS3 56 # define _WIN32_WINNT_WIN10_RS3 _WIN32_WINNT_WIN10 57 # endif 58 # ifndef _WIN32_WINNT_WIN10_RS4 59 # define _WIN32_WINNT_WIN10_RS4 _WIN32_WINNT_WIN10 60 # endif 61 # ifndef _WIN32_WINNT_WIN10_RS5 62 # define _WIN32_WINNT_WIN10_RS5 _WIN32_WINNT_WIN10 63 # endif 64 #endif 65 #if defined(NTDDI_WIN10_RS5) && !defined(NTDDI_WIN10_CO) && defined(WDK_NTDDI_VERSION) 66 # if NTDDI_VERSION < NTDDI_WIN10_RS5 67 # define _NTDDSCM_H_ buggy, hope nobody needs it. 68 # endif 30 69 #endif 31 70 -
trunk/include/iprt/win/winsock2.h
r85121 r92902 30 30 #endif 31 31 32 /* winsock2.h includes windows.h, but without winsock.h, so we need to do it 33 up front using our wrapper header to avoid repeating tricks here. */ 34 #define _WINSOCKAPI_ /* do not include winsock.h via windows.h */ 35 #include <iprt/win/windows.h> 36 32 37 #ifdef _MSC_VER 33 38 /* -
trunk/include/iprt/win/ws2tcpip.h
r85121 r92902 30 30 #endif 31 31 32 /* ws2tcpip.h includes winsock2.h, so get ahead of it and include our cleanly 33 wrapped version first to avoid duplicating stuff here. */ 34 #include <iprt/win/winsock2.h> 35 32 36 #ifdef _MSC_VER 33 37 # pragma warning(push)
Note:
See TracChangeset
for help on using the changeset viewer.