Configure ELAST for MinGW
Summary: Use _LIBCPP_MSVCRT_LIKE while configuring ELAST, so MinGW gets the same configuration as MSVC. Reviewers: compnerd, srhines, danalbert, mstorsjo Subscribers: christof, ldionne, cfe-commits Differential Revision: https://reviews.llvm.org/D48731 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@335916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include <__config>
|
#include <__config>
|
||||||
|
|
||||||
#if defined(_LIBCPP_MSVCRT)
|
#if defined(_LIBCPP_MSVCRT_LIKE)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#else
|
#else
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
// No _LIBCPP_ELAST needed on Apple
|
// No _LIBCPP_ELAST needed on Apple
|
||||||
#elif defined(__sun__)
|
#elif defined(__sun__)
|
||||||
#define _LIBCPP_ELAST ESTALE
|
#define _LIBCPP_ELAST ESTALE
|
||||||
#elif defined(_LIBCPP_MSVCRT)
|
#elif defined(_LIBCPP_MSVCRT_LIKE)
|
||||||
#define _LIBCPP_ELAST (_sys_nerr - 1)
|
#define _LIBCPP_ELAST (_sys_nerr - 1)
|
||||||
#else
|
#else
|
||||||
// Warn here so that the person doing the libcxx port has an easier time:
|
// Warn here so that the person doing the libcxx port has an easier time:
|
||||||
|
|||||||
Reference in New Issue
Block a user