Skip to content

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

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

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

Conversation

@localspook

@localspook localspook commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

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