Skip to content

Make fmt-c.h compile with Clang on Windows#4712

Merged
vitaut merged 1 commit intofmtlib:masterfrom
localspook:fmt-c-clang
Mar 14, 2026
Merged

Make fmt-c.h compile with Clang on Windows#4712
vitaut merged 1 commit intofmtlib:masterfrom
localspook:fmt-c-clang

Conversation

@localspook
Copy link
Copy Markdown
Contributor

@localspook localspook commented Mar 12, 2026

fmt-c.h fails to compile with Clang when running in MSVC emulation mode (https://godbolt.org/z/jovMMbG95) because Clang doesn't define _MSVC_TRADITIONAL or support the /Zc:preprocessor option (its preprocessor is always in the standard-compliant mode). I confirmed that with this change the library builds and the C tests pass.

@vitaut vitaut merged commit ae6fd83 into fmtlib:master Mar 14, 2026
41 checks passed
@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented Mar 14, 2026

Thank you

@localspook localspook deleted the fmt-c-clang branch March 14, 2026 01:09
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