[all-commits] [llvm/llvm-project] 54928a: [clang] __STDC_NO_THREADS__ is no longer necessar...

Dipesh Sharma via All-commits all-commits at lists.llvm.org
Mon Jan 27 06:31:16 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54928a10c8dba7c07c6224c1ead5c02a335890e6
      https://github.com/llvm/llvm-project/commit/54928a10c8dba7c07c6224c1ead5c02a335890e6
  Author: Dipesh Sharma <76941383+dipeshs809 at users.noreply.github.com>
  Date:   2025-01-27 (Mon, 27 Jan 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/LangOptions.h
    M clang/lib/Basic/Targets/OSTargets.cpp
    A clang/test/Preprocessor/deprecate-threads-macro-definition-msvc1939.c
    M clang/test/Preprocessor/init-aarch64.c

  Log Message:
  -----------
  [clang]  __STDC_NO_THREADS__ is no longer necessary for VS 2022 1939 and above (#117149)

Since `__STDC_NO_THREADS__` is a reserved identifier,
- If `MSVC version < 17.9`
- C version < C11(201112L)
- When `<threads.h>` is unavailable `!__has_include(<threads.h>)` is
`__has_include` is defined.

Closes #115529



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