Skip to content

Commit c83bbf5

Browse files
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 llvm-svn: 335916
1 parent 402ab49 commit c83bbf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/src/include/config_elast.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include <__config>
1414

15-
#if defined(_LIBCPP_MSVCRT)
15+
#if defined(_LIBCPP_MSVCRT_LIKE)
1616
#include <stdlib.h>
1717
#else
1818
#include <errno.h>
@@ -30,7 +30,7 @@
3030
// No _LIBCPP_ELAST needed on Apple
3131
#elif defined(__sun__)
3232
#define _LIBCPP_ELAST ESTALE
33-
#elif defined(_LIBCPP_MSVCRT)
33+
#elif defined(_LIBCPP_MSVCRT_LIKE)
3434
#define _LIBCPP_ELAST (_sys_nerr - 1)
3535
#else
3636
// Warn here so that the person doing the libcxx port has an easier time:

0 commit comments

Comments
 (0)