Path: blob/main/system/lib/llvm-libc/shared/libc_common.h
6169 views
//===-- Common defines for sharing LLVM libc with LLVM projects -*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLVM_LIBC_SHARED_LIBC_COMMON_H9#define LLVM_LIBC_SHARED_LIBC_COMMON_H1011// Use system errno.12#ifdef LIBC_ERRNO_MODE13#if LIBC_ERRNO_MODE != LIBC_ERRNO_MODE_SYSTEM_INLINE14#error \15"LIBC_ERRNO_MODE was set to something different from LIBC_ERRNO_MODE_SYSTEM_INLINE."16#endif // LIBC_ERRNO_MODE != LIBC_ERRNO_MODE_SYSTEM_INLINE17#else18#define LIBC_ERRNO_MODE LIBC_ERRNO_MODE_SYSTEM_INLINE19#endif // LIBC_ERRNO_MODE2021#ifndef LIBC_NAMESPACE22#define LIBC_NAMESPACE __llvm_libc23#endif // LIBC_NAMESPACE2425#endif // LLVM_LIBC_SHARED_LIBC_COMMON_H262728