Use _sys_nerr at David's suggestion.

http://reviews.llvm.org/D6558

Files:
  include/__config
Index: include/__config
===================================================================
--- include/__config
+++ include/__config
@@ -650,9 +650,11 @@
 #elif defined(_NEWLIB_VERSION)
 #define _LIBCPP_ELAST __ELASTERROR
 #elif defined(__APPLE__)
-// Not _LIBCPP_ELAST needed on Apple
+// No _LIBCPP_ELAST needed on Apple
 #elif defined(__sun__)
 #define _LIBCPP_ELAST ESTALE
+#elif defined(__MINGW32__)
+#define _LIBCPP_ELAST _sys_nerr
 #else
 // Warn here so that the person doing the libcxx port has an easier time:
 #warning This platform's ELAST hasn't been ported yet
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to