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

via libc-commits libc-commits at lists.llvm.org
Thu Oct 19 10:31:52 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
----------------
michaelrj-google wrote:

I'm fine with either option. I'd lean slightly more towards `__LLVM_LIBC__` since I think that's clearer.

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


More information about the libc-commits mailing list