After r287412 (Bug 234571), Clang-cl can't compile WinCairo port. FAILED: Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-cbdfe323-28.cpp.obj C:\PROGRA~1\LLVM\bin\clang-cl.exe (..)UnifiedSource-cbdfe323-28.cpp In file included from WebCore\DerivedSources\unified-sources\UnifiedSource-cbdfe323-28.cpp:6: In file included from ..\..\Source\WebCore\Modules/notifications/NotificationData.cpp:27: ..\..\Source\WebCore\Modules\notifications/NotificationData.h(47,5): error: reference to 'UUID' is ambiguous UUID notificationID; ^ WTF\Headers\wtf/UUID.h(143,12): note: candidate found by name lookup is 'UUID' using WTF::UUID; ^ C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared\rpcdce.h(83,14): note: candidate found by name lookup is 'UUID' typedef GUID UUID; ^ 1 error generated.
Created attachment 447994 [details] repro
GCC and MSVC can compile, but Clang can't https://godbolt.org/z/hfsd5Gxj1 https://stackoverflow.com/q/36204506 https://stackoverflow.com/q/55896837
<rdar://problem/87052994>
We shouldn't have to make WebKit source code worse to handle one misbehaving compiler. I'd wager we've had to deal with this type of thing in the past - Anybody have any ideas?
Created attachment 455038 [details] workaround patch