brintos

brintos / llvm-project-archived public Read only

0
0
Text · 987 B · c4560bb Raw
27 lines · c
1//===-- Common defines for sharing LLVM libc with LLVM projects -*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_SHARED_LIBC_COMMON_H10#define LLVM_LIBC_SHARED_LIBC_COMMON_H11 12// Use system errno.13#ifdef LIBC_ERRNO_MODE14#if LIBC_ERRNO_MODE != LIBC_ERRNO_MODE_SYSTEM_INLINE15#error                                                                         \16    "LIBC_ERRNO_MODE was set to something different from LIBC_ERRNO_MODE_SYSTEM_INLINE."17#endif // LIBC_ERRNO_MODE != LIBC_ERRNO_MODE_SYSTEM_INLINE18#else19#define LIBC_ERRNO_MODE LIBC_ERRNO_MODE_SYSTEM_INLINE20#endif // LIBC_ERRNO_MODE21 22#ifndef LIBC_NAMESPACE23#define LIBC_NAMESPACE __llvm_libc24#endif // LIBC_NAMESPACE25 26#endif // LLVM_LIBC_SHARED_LIBC_COMMON_H27