llvm / llvm/llvm-project

[libc][CI] unanticipated macro expansion of clearerr_unlocked in macos-15 build

Open
#172,302 1 comment 0 reactions 0 assignees View on GitHub
libc
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

See https://github.com/llvm/llvm-project/actions/runs/20103522181/job/57680755758

Macos sdk defines clearerr_unlocked as a macro and [file.h](https://github.com/llvm/llvm-project/blob/main/libc/src/__support/File/file.h) defines it as a function. When running on macos, the preprocessor erroneously substitutes the defintion for the macro in place of the function identifier causing build failures.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.