Skip to content

Commit 2b629fe

Browse files
committed
[Fix] mpt/base/detect_os.hpp: Ensure that WDK_NTDDI_VERSION is new enough for the targeted Windows version.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@24014 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent 1f4f3ee commit 2b629fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mpt/base/detect_os.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ static_assert(NTDDI_WIN11_GE == MPT_WIN_11_23H2);
325325
#define MPT_WIN_AT_LEAST(v) 0
326326
#define MPT_WIN_BEFORE(v) 1
327327
#endif
328+
#if (MPT_OS_WINDOWS_WINNT || MPT_OS_WINDOWS_WINRT) && defined(WDK_NTDDI_VERSION)
329+
static_assert(WDK_NTDDI_VERSION >= MPT_WIN_VERSION);
330+
#endif
328331

329332

330333
#elif defined(__APPLE__)

0 commit comments

Comments
 (0)