[libcxx] r291192 - config_elast: fix typo (NFC)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 6 21:18:27 PST 2017


FTR, this wasn't changed with the renaming.

But, taking a look at it does seem that it is off by one.  Well spotted!

On Thu, Jan 5, 2017 at 7:16 PM David Majnemer <david.majnemer at gmail.com>
wrote:

> On Thu, Jan 5, 2017 at 3:25 PM, Saleem Abdulrasool via cfe-commits <
> cfe-commits at lists.llvm.org> wrote:
>
> Author: compnerd
>
>
> Date: Thu Jan  5 17:25:44 2017
>
>
> New Revision: 291192
>
>
>
>
>
> URL: http://llvm.org/viewvc/llvm-project?rev=291192&view=rev
>
>
> Log:
>
>
> config_elast: fix typo (NFC)
>
>
>
>
>
> Missed the original typo which was duplicated.  NFC.
>
>
>
>
>
> Modified:
>
>
>     libcxx/trunk/src/include/config_elast.h
>
>
>
>
>
> Modified: libcxx/trunk/src/include/config_elast.h
>
>
> URL:
> http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/include/config_elast.h?rev=291192&r1=291191&r2=291192&view=diff
>
>
>
> ==============================================================================
>
>
> --- libcxx/trunk/src/include/config_elast.h (original)
>
>
> +++ libcxx/trunk/src/include/config_elast.h Thu Jan  5 17:25:44 2017
>
>
> @@ -30,7 +30,7 @@
>
>
>  // No _LIBCPP_ELAST needed on Apple
>
>
>  #elif defined(__sun__)
>
>
>  #define _LIBCPP_ELAST ESTALE
>
>
> -#elif defined(_LIBCPP_MSCVRT)
>
>
> +#elif defined(_LIBCPP_MSVCRT)
>
>
>  #define _LIBCPP_ELAST _sys_nerr
>
>
> Isn't ELAST supposed to point to a valid error number? Shouldn't this
> be _sys_nerr-1?
>
>
>
>
>  #else
>
>
>  // Warn here so that the person doing the libcxx port has an easier time:
>
>
>
>
>
>
>
>
> _______________________________________________
>
>
> cfe-commits mailing list
>
>
> cfe-commits at lists.llvm.org
>
>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170107/a3f79b35/attachment.html>


More information about the cfe-commits mailing list