mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
27 lines
987 B
C++
Vendored
27 lines
987 B
C++
Vendored
//===-- Common defines for sharing LLVM libc with LLVM projects -*- C++ -*-===//
|
|
//
|
|
// 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_SHARED_LIBC_COMMON_H
|
|
#define LLVM_LIBC_SHARED_LIBC_COMMON_H
|
|
|
|
// Use system errno.
|
|
#ifdef LIBC_ERRNO_MODE
|
|
#if LIBC_ERRNO_MODE != LIBC_ERRNO_MODE_SYSTEM_INLINE
|
|
#error \
|
|
"LIBC_ERRNO_MODE was set to something different from LIBC_ERRNO_MODE_SYSTEM_INLINE."
|
|
#endif // LIBC_ERRNO_MODE != LIBC_ERRNO_MODE_SYSTEM_INLINE
|
|
#else
|
|
#define LIBC_ERRNO_MODE LIBC_ERRNO_MODE_SYSTEM_INLINE
|
|
#endif // LIBC_ERRNO_MODE
|
|
|
|
#ifndef LIBC_NAMESPACE
|
|
#define LIBC_NAMESPACE __llvm_libc
|
|
#endif // LIBC_NAMESPACE
|
|
|
|
#endif // LLVM_LIBC_SHARED_LIBC_COMMON_H
|