Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Fix the Linux and macOS build of ztimer.h - #149

Merged
lemire merged 1 commit into
fast-pack:masterfrom
aikhanjum:fix-ztimer-namespace-build
Nov 27, 2026
Merged

lemire merged 1 commit into
fast-pack:masterfrom
aikhanjum:fix-ztimer-namespace-build

Conversation

@aikhanjum

Copy link
Copy Markdown
Contributor

Since #148, headers/ztimer.h opens namespace FastPForLib only inside the _WIN32 block, while the closing brace at the end of the file is unconditional. Every non-Windows build fails with

headers/ztimer.h:122:1: error: extraneous closing brace ('}')

and the Ubuntu and macOS CI jobs on master have failed since then. This closes the _WIN32 include 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 ctest passes. 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

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>
@lemire
lemire merged commit 4d66e26 into fast-pack:master Nov 27, 2026
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