Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/llvm-libc/hdr/errno_macros.h
6182 views
1
//===-- Definition of macros from errno.h ---------------------------------===//
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-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLVM_LIBC_HDR_ERRNO_MACROS_H
10
#define LLVM_LIBC_HDR_ERRNO_MACROS_H
11
12
#ifdef LIBC_FULL_BUILD
13
14
#ifdef __linux__
15
#include <linux/errno.h>
16
17
#include "include/llvm-libc-macros/error-number-macros.h"
18
#else // __linux__
19
#include "include/llvm-libc-macros/generic-error-number-macros.h"
20
#endif
21
22
#else // Overlay mode
23
24
#include <errno.h>
25
26
#endif // LLVM_LIBC_FULL_BUILD
27
28
#endif // LLVM_LIBC_HDR_ERRNO_MACROS_H
29
30