[libc-commits] [libc] [libc] Add simple features.h with implementation macro (PR #69402)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Oct 18 16:28:00 PDT 2023


================
@@ -0,0 +1,15 @@
+//===-- Definition of macros from features.h
+//----------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __LLVM_LIBC_MACROS_FEATURES_MACROS_H
+#define __LLVM_LIBC_MACROS_FEATURES_MACROS_H
+
+#define __LLVMLIBC__ 1
----------------
jhuber6 wrote:

Why `__LLVMLIBC__` instead of `__LLVM_LIBC__`? Is there some prior art here?

https://github.com/llvm/llvm-project/pull/69402


More information about the libc-commits mailing list