[Win32] Overload ==, != for locale_t and long long
authorPirama Arumuga Nainar <pirama@google.com>
Mon, 2 Jul 2018 20:11:15 +0000 (20:11 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Mon, 2 Jul 2018 20:11:15 +0000 (20:11 +0000)
commit7aea360924bae0559d50774c88d60381247bd7eb
treefeed7558776c254b0a56d474f67fb296b0bd55c5
parentc7cef4bcc4400673ffb86be04c006790577f7f56
[Win32] Overload ==, != for locale_t and long long

Summary:
_is_chartype_l (needed for isxdigit_l) in MinGW compares locale_t and NULL.
NULL is 'long long' for 64-bit, and this results in ambiguous overloads when
compiled with Clang.  Define a concrete overload for the operators to fix the
ambiguity.

Reviewers: mstorsjo, EricWF, srhines, danalbert

Subscribers: christof, cfe-commits, ldionne

Differential Revision: https://reviews.llvm.org/D48749

llvm-svn: 336141
libcxx/include/support/win32/locale_win32.h