[all-commits] [llvm/llvm-project] b0d782: [libc] Move __LLVM_LIBC__ define to __llvm-libc-co...
Petr Hosek via All-commits
all-commits at lists.llvm.org
Wed Feb 12 11:37:30 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0d782080529cf5d422847e1f91f29bd7c62f691
https://github.com/llvm/llvm-project/commit/b0d782080529cf5d422847e1f91f29bd7c62f691
Author: Petr Hosek <phosek at google.com>
Date: 2025-02-12 (Wed, 12 Feb 2025)
Changed paths:
M libc/include/__llvm-libc-common.h
M libc/include/llvm-libc-macros/features-macros.h
Log Message:
-----------
[libc] Move __LLVM_LIBC__ define to __llvm-libc-common.h (#126877)
Relying on features.h is problematic since codebases are free to have
such a header on their search path, which breaks compilation. libc
should instead provide a more standard way of getting __LLVM_LIBC__.
Since __llvm-libc-common.h is included from all libc headers, defining
__LLVM_LIBC__ there ensures that this define is available whenever any
of the standard header is included.
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