Skip to content

Fix compiling on non-desktop GDK platforms#3029

Merged
horenmar merged 1 commit intocatchorg:develfrom
CookiePLMonster:patch-1
Sep 17, 2025
Merged

Fix compiling on non-desktop GDK platforms#3029
horenmar merged 1 commit intocatchorg:develfrom
CookiePLMonster:patch-1

Conversation

@CookiePLMonster
Copy link
Contributor

Description

When building on non-desktop GDK platforms, I'd encounter compile failures regarding CONSOLE_SCREEN_BUFFER_INFO and other console-related WinAPI symbols. Those are defined only for some family partitions, and they were not correctly covered by the current CATCH_PLATFORM_WINDOWS_UWP gate-off.

In this PR, I modified the code defining CATCH_INTERNAL_CONFIG_NO_COLOUR_WIN32 to use the correct Windows family partition checks (when applicable), identical to the checks performed inside ConsoleApi2.h. With this change, I can build Catch2 on all platforms supported by GDK.

GitHub Issues

N/A, stumbled upon this issue in production.

…NO_COLOUR_WIN32 correctly


Fixes building on non-desktop GDK platforms.
@codecov
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.97%. Comparing base (cd93d20) to head (eef8404).
⚠️ Report is 1 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3029      +/-   ##
==========================================
+ Coverage   90.93%   90.97%   +0.03%     
==========================================
  Files         201      201              
  Lines        8681     8681              
==========================================
+ Hits         7894     7897       +3     
+ Misses        787      784       -3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@horenmar
Copy link
Member

Thanks

@horenmar horenmar merged commit dc3a4ea into catchorg:devel Sep 17, 2025
84 checks passed
@CookiePLMonster CookiePLMonster deleted the patch-1 branch September 17, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants