[all-commits] [llvm/llvm-project] c08ed4: [Clang] Define `__SIG_ATOMIC_TYPE__` macro (#213934)

Zeyi Xu via All-commits all-commits at lists.llvm.org
Tue Aug 4 22:42:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c08ed4c1ab086aad6f22cfc499e74d92953045ae
      https://github.com/llvm/llvm-project/commit/c08ed4c1ab086aad6f22cfc499e74d92953045ae
  Author: Zeyi Xu <mitchell.xu2 at gmail.com>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.md
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/test/Preprocessor/init-aarch64.c
    M clang/test/Preprocessor/init-riscv.c
    M clang/test/Preprocessor/init.c

  Log Message:
  -----------
  [Clang] Define `__SIG_ATOMIC_TYPE__` macro (#213934)

Define `__SIG_ATOMIC_TYPE__` for compatibility with GCC.

This fixes `riscv32-netbsd` and `riscv64-netbsd` system headers that
define `sig_atomic_t` using this macro.

Reference:
https://gcc.gnu.org/onlinedocs/gcc-16.1.0/cpp/Common-Predefined-Macros.html

Follow up of #199678, Closes #213895



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list