HomePhabricator

[Win32] Overload ==, != for locale_t and long long

Description

[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

Details

Committed
piramaJul 2 2018, 1:11 PM
Differential Revision
D48749: [Win32] Overload ==, != for locale_t and long long
Branches
Unknown
Tags
Unknown