[all-commits] [llvm/llvm-project] 5ffb10: [Clang] Define `__WCHAR_MIN__` and related macros ...

Zeyi Xu via All-commits all-commits at lists.llvm.org
Thu Jul 9 08:22:45 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ffb1046335f4c1ecc9f688f1337b31c260f37c8
      https://github.com/llvm/llvm-project/commit/5ffb1046335f4c1ecc9f688f1337b31c260f37c8
  Author: Zeyi Xu <mitchell.xu2 at gmail.com>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

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

  Log Message:
  -----------
  [Clang] Define `__WCHAR_MIN__` and related macros (#208135)

Define `__WCHAR_MIN__`, `__WINT_MIN__`, and `__SIG_ATOMIC_MIN__` for
compatibility with GCC.

This also fixes targets such as `riscv*-netbsd` that define `WCHAR_MIN`
from `__WCHAR_MIN__`.

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



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