Path: blob/master/libs/c++/src/include/config_elast.h
12346 views
//===----------------------- config_elast.h -------------------------------===//1//2// The LLVM Compiler Infrastructure3//4// This file is dual licensed under the MIT and the University of Illinois Open5// Source Licenses. See LICENSE.TXT for details.6//7//===----------------------------------------------------------------------===//89#ifndef _LIBCPP_CONFIG_ELAST10#define _LIBCPP_CONFIG_ELAST1112#include <__config>1314#if defined(_LIBCPP_MSVCRT_LIKE)15#include <stdlib.h>16#else17#include <errno.h>18#endif1920#if defined(ELAST)21#define _LIBCPP_ELAST ELAST22#elif defined(_NEWLIB_VERSION)23#define _LIBCPP_ELAST __ELASTERROR24#elif defined(__Fuchsia__)25// No _LIBCPP_ELAST needed on Fuchsia26#elif defined(__linux__) || defined(_LIBCPP_HAS_MUSL_LIBC)27#define _LIBCPP_ELAST 409528#elif defined(__APPLE__)29// No _LIBCPP_ELAST needed on Apple30#elif defined(__sun__)31#define _LIBCPP_ELAST ESTALE32#elif defined(_LIBCPP_MSVCRT_LIKE)33#define _LIBCPP_ELAST (_sys_nerr - 1)34#else35// Warn here so that the person doing the libcxx port has an easier time:36#warning ELAST for this platform not yet implemented37#endif3839#endif // _LIBCPP_CONFIG_ELAST404142