Repository navigation
Fix the Linux and macOS build of ztimer.h - #149
Merged
Merged
Conversation
fast-pack#148 moved <windows.h> out of namespace FastPForLib, but the namespace was then only opened inside the _WIN32 block while its closing brace stayed unconditional. Every non-Windows build fails with "extraneous closing brace" at ztimer.h:122, so the Ubuntu and macOS CI jobs on master have failed since then. Close the _WIN32 include block before the namespace and keep only the Windows timer inside its own _WIN32 block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #148,
headers/ztimer.hopensnamespace FastPForLibonly inside the_WIN32block, while the closing brace at the end of the file is unconditional. Every non-Windows build fails withand the Ubuntu and macOS CI jobs on master have failed since then. This closes the
_WIN32include block before the namespace and keeps only the Windows timer class inside#ifdef _WIN32, so<windows.h>stays outside the namespace as #148 intended.Tested on macOS arm64 with Apple clang 21. Master fails to build with the error above. With this change the Release build succeeds and
ctestpasses. Windows was not built locally.AI assistance (Claude Code) was used to find the cause and to make and test this change.
🤖 Generated with Claude Code