mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-11-24 12:29:57 +00:00
f5256e16df
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103516 91177308-0d34-0410-b5e6-96231b3b80d8
58 lines
997 B
C++
58 lines
997 B
C++
// -*- C++ -*-
|
|
//===-------------------------- cerrno ------------------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef _LIBCPP_CERRNO
|
|
#define _LIBCPP_CERRNO
|
|
|
|
/*
|
|
cerrno synopsis
|
|
|
|
Macros:
|
|
|
|
EDOM
|
|
EILSEQ // C99
|
|
ERANGE
|
|
errno
|
|
|
|
*/
|
|
|
|
#include <__config>
|
|
#include <errno.h>
|
|
|
|
#pragma GCC system_header
|
|
|
|
#if !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE)
|
|
|
|
const int __elast1 = ELAST+1;
|
|
const int __elast2 = ELAST+2;
|
|
#undef ELAST
|
|
|
|
#ifdef ENOTRECOVERABLE
|
|
|
|
#define EOWNERDEAD __elast1
|
|
#define ELAST EOWNERDEAD
|
|
|
|
#elif defined(EOWNERDEAD)
|
|
|
|
#define ENOTRECOVERABLE __elast1
|
|
#define ELAST ENOTRECOVERABLE
|
|
|
|
#else
|
|
|
|
#define EOWNERDEAD __elast1
|
|
#define ENOTRECOVERABLE __elast2
|
|
#define ELAST ENOTRECOVERABLE
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif // _LIBCPP_CERRNO
|